Commit d5a6934
authored
Register cpp language for syntax highlighting in production (#191)
PrismLight only highlights explicitly registered languages. In dev
mode webpack skips tree-shaking so unregistered grammars still work,
but the production static export strips them out. This caused C++
code blocks to render as plain text in production.1 parent 884f503 commit d5a6934
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments