Version: (fr) 2.0.0-alpha.71 🚧
Plugins
You can expand the MDX functionalities, using plugins.
Docusaurus content plugins support both Remark and Rehype plugins that work with MDX.
#
Configuring pluginsAn MDX plugin is usually a npm package, so you install them like other npm packages using npm.
First, install your Remark and Rehype plugins.
For example:
- npm
- Yarn
Next, import the plugins:
Finally, add them to the @docusaurus/preset-classic
options in docusaurus.config.js
:
docusaurus.config.js
#
Configuring plugin optionsSome plugins can be configured and accept their own options. In that case, use the [plugin, pluginOptions]
syntax, like so:
docusaurus.config.js
See more information in the MDX documentation.