@modern-js/doc-tools-doc
Version:
Website for @modern-js/doc-tools
17 lines (14 loc) • 647 B
text/mdx
```ts title="modern.config.ts"
import { docTools, defineConfig } from '@modern-js/doc-tools';
export default defineConfig({
doc: {
markdown: {
experimentalMdxRs: true,
},
},
plugins: [docTools()],
});
```
:::tip NOTICE
The bottom layer of this function is based on the [-js/mdx-rs-binding](https://github.com/web-infra-dev/mdx-rs-binding) library developed by Modern.js Doc. The performance is **5 ~ 10** times higher than the JS version of the MDX compiler, but the JS version of the plugin is not yet supported. If you need to add a custom remark or rehype plugin, it is not recommended to enable this function.
:::