Skip to content

Commit

Permalink
docs(mdx): update experimental section
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Oct 27, 2022
1 parent 6a254bb commit fdcda82
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/advanced-features/using-mdx.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@ export default function Post(props) {

If you use it across the site you may want to add the provider to `_app.js` so all MDX pages pick up the custom element config.

## Using rust based MDX compiler (experimental)

Next.js supports a new MDX compiler written in Rust. This compiler is still experimental and is not recommended for production use. To use the new compiler, you need to configure `next.config.js` when you pass it to `withMDX`:

```js
// next.config.js
module.exports = withMDX({
experimental: {
mdxRs: true,
},
})
```

## Helpful Links

- [MDX](https://mdxjs.com)
Expand Down

0 comments on commit fdcda82

Please sign in to comment.