feat: integrate Mermaid component into MDX components for extended chart support
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import defaultMdxComponents from "fumadocs-ui/mdx";
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
||||||
import type { MDXComponents } from "mdx/types";
|
import type { MDXComponents } from "mdx/types";
|
||||||
|
import {Mermaid} from "@/components/mdx/mermaid";
|
||||||
|
|
||||||
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
||||||
return {
|
return {
|
||||||
...defaultMdxComponents,
|
...defaultMdxComponents,
|
||||||
|
Mermaid,
|
||||||
...components,
|
...components,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user