Skip to content

Commit 982a1fb

Browse files
committed
feat: add remarkMdxMermaid plugin to MDX options
1 parent a4fa19e commit 982a1fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from "fumadocs-mdx/config"
22
import { transformerCommandColor } from "./src/lib/command-transformer"
3+
import { remarkMdxMermaid } from "fumadocs-core/mdx-plugins"
34

45
// You can customise Zod schemas for frontmatter and `meta.json` here
56
// see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
@@ -24,5 +25,6 @@ export default defineConfig({
2425
},
2526
transformers: [transformerCommandColor()],
2627
},
28+
remarkPlugins: [remarkMdxMermaid],
2729
},
2830
})

0 commit comments

Comments
 (0)