mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
docs(v2): Fix typo in markdown-features (#2973)
* Fix typo in markdown-features The code needed to be in npm syntax in order to work with npm2yarn * Update markdown-features.mdx Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
65ce107331
commit
8304e8253c
2 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ module.exports = {
|
|||
If you want to add highlighting for languages not yet supported by Prism, you can swizzle `prism-include-languages`:
|
||||
|
||||
```bash npm2yarn
|
||||
yarn swizzle @docusaurus/theme-classic prism-include-languages
|
||||
npm run swizzle @docusaurus/theme-classic prism-include-languages
|
||||
```
|
||||
|
||||
It will produce `prism-include-languages.js` in your `src/theme` folder. You can add highlighting support for custom languages by editing `prism-include-languages.js`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue