From e8617b80422efd5903a4336c95dfb3b2dcd9bf0e Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Mon, 5 Jan 2026 10:36:24 +0100 Subject: [PATCH] feat: enable Mermaid support in MDX through remark plugin integration --- documentation/source.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documentation/source.config.ts b/documentation/source.config.ts index a65e66a..1970bed 100644 --- a/documentation/source.config.ts +++ b/documentation/source.config.ts @@ -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,