mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 22:27:11 +02:00
fix(v2): fix prism not working
This commit is contained in:
parent
311c88cd76
commit
2d24e478a5
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ const slug = require('rehype-slug');
|
|||
const rightToc = require('./rightToc');
|
||||
|
||||
const DEFAULT_OPTIONS = {
|
||||
rehypePlugins: [slug, [(rehypePrism, {ignoreMissing: true})]],
|
||||
rehypePlugins: [[rehypePrism, {ignoreMissing: true}], slug],
|
||||
remarkPlugins: [emoji, rightToc],
|
||||
prismTheme: 'prism-themes/themes/prism-atom-dark.css',
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue