mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
docs: user should restart docusaurus after adding prism additionalLanguage (#5191)
* Update markdown-features-code-blocks.mdx if you add php language and don't restart your server, you will get an error like this uncaught Error: Cannot find module './prism-php' until you restart your server * Update website/docs/guides/markdown-features/markdown-features-code-blocks.mdx Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
12cea5eefe
commit
a2729128db
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ module.exports = {
|
|||
};
|
||||
```
|
||||
|
||||
After adding `additionalLanguages`, restart Docusaurus.
|
||||
|
||||
If you want to add highlighting for languages not yet supported by Prism, you can swizzle `prism-include-languages`:
|
||||
|
||||
```bash npm2yarn
|
||||
|
|
Loading…
Add table
Reference in a new issue