mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +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 rightToc = require('./rightToc');
|
||||||
|
|
||||||
const DEFAULT_OPTIONS = {
|
const DEFAULT_OPTIONS = {
|
||||||
rehypePlugins: [slug, [(rehypePrism, {ignoreMissing: true})]],
|
rehypePlugins: [[rehypePrism, {ignoreMissing: true}], slug],
|
||||||
remarkPlugins: [emoji, rightToc],
|
remarkPlugins: [emoji, rightToc],
|
||||||
prismTheme: 'prism-themes/themes/prism-atom-dark.css',
|
prismTheme: 'prism-themes/themes/prism-atom-dark.css',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue