Skip to content

Commit 4f81e2c

Browse files
fork: mermaid-isomorphic
1 parent e8cd800 commit 4f81e2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1758
-20
lines changed

apps/site/next.mdx.plugins.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import rehypeShikiji from './next.mdx.shiki.mjs';
1717
export const REHYPE_PLUGINS = [
1818
// Transforms Mermaid code blocks into SVGs
1919
// note: needs to be imported before rehype-shiki to prevent transforming into code-blocks
20-
rehypeMermaid,
20+
[rehypeMermaid, { strategy: 'inline-svg', dark: true }],
2121
// Generates `id` attributes for headings (H1, ...)
2222
rehypeSlug,
2323
// Automatically add anchor links to headings (H1, ...)

apps/site/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,12 @@
113113
"typescript": "~5.7.2",
114114
"typescript-eslint": "~8.25.0",
115115
"user-agent-data-types": "0.4.2"
116+
},
117+
"overrides": {
118+
"rehype-mermaid": {
119+
"dependencies": {
120+
"mermaid-isomorphic": "*"
121+
}
122+
}
116123
}
117124
}

0 commit comments

Comments
 (0)