feat: enable Mermaid support in MDX through remark plugin integration
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
|||||||
frontmatterSchema,
|
frontmatterSchema,
|
||||||
metaSchema,
|
metaSchema,
|
||||||
} from "fumadocs-mdx/config";
|
} from "fumadocs-mdx/config";
|
||||||
|
import {remarkMdxMermaid} from "fumadocs-core/mdx-plugins";
|
||||||
|
|
||||||
// You can customise Zod schemas for frontmatter and `meta.json` here
|
// You can customise Zod schemas for frontmatter and `meta.json` here
|
||||||
// see https://fumadocs.dev/docs/mdx/collections
|
// see https://fumadocs.dev/docs/mdx/collections
|
||||||
@@ -14,6 +15,9 @@ export const docs = defineDocs({
|
|||||||
postprocess: {
|
postprocess: {
|
||||||
includeProcessedMarkdown: true,
|
includeProcessedMarkdown: true,
|
||||||
},
|
},
|
||||||
|
mdxOptions: {
|
||||||
|
remarkPlugins: [remarkMdxMermaid],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
schema: metaSchema,
|
schema: metaSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user