feat: enable Mermaid support in MDX through remark plugin integration
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user