mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12:35 +02:00
docs(v2): add examples to plugin usage doc (#2351)
Add an example value for the remarkPlugins config option for plugin-content-blog and plugin-content docs Initially I tried to use a string value with this config and got an esoteric error. Having an example of it's usage would help.
This commit is contained in:
parent
c1716096de
commit
d4bbf000d5
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ module.exports = {
|
|||
/**
|
||||
* Remark and Rehype plugins passed to MDX
|
||||
*/
|
||||
remarkPlugins: [],
|
||||
remarkPlugins: [/* require('remark-math') */],
|
||||
rehypePlugins: [],
|
||||
/**
|
||||
* Truncate marker, can be a regex or string.
|
||||
|
@ -246,7 +246,7 @@ module.exports = {
|
|||
/**
|
||||
* Remark and Rehype plugins passed to MDX
|
||||
*/
|
||||
remarkPlugins: [],
|
||||
remarkPlugins: [/* require('remark-math') */],
|
||||
rehypePlugins: [],
|
||||
/**
|
||||
* Whether to display the author who last updated the doc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue