feat: enable Mermaid support in MDX through remark plugin integration

This commit is contained in:
Mathis HERRIOT
2026-01-05 10:36:24 +01:00
parent 824cdbe2b0
commit e8617b8042

View File

@@ -4,6 +4,7 @@ import {
frontmatterSchema,
metaSchema,
} from "fumadocs-mdx/config";
import {remarkMdxMermaid} from "fumadocs-core/mdx-plugins";
// You can customise Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections
@@ -14,6 +15,9 @@ export const docs = defineDocs({
postprocess: {
includeProcessedMarkdown: true,
},
mdxOptions: {
remarkPlugins: [remarkMdxMermaid],
},
},
meta: {
schema: metaSchema,