Change mdx options description (#11409)

* Change mdx options description

https://mdxjs.com/advanced/plugins#using-remark-and-rehype-plugins

* Change descriptions of next-mdx
This commit is contained in:
Eugene Dzhumak 2020-03-28 23:20:48 +04:00 committed by GitHub
parent 9e2ae69973
commit 8d63330c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,14 +24,14 @@ const withMDX = require('@next/mdx')()
module.exports = withMDX()
```
Optionally you can provide [MDX options](https://github.com/mdx-js/mdx#options):
Optionally you can provide [MDX plugins](https://mdxjs.com/advanced/plugins#plugins):
```js
// next.config.js
const withMDX = require('@next/mdx')({
options: {
mdPlugins: [],
hastPlugins: [],
remarkPlugins: [],
rehypePlugins: [],
},
})
module.exports = withMDX()