We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3883b4f commit 19a6616Copy full SHA for 19a6616
src/components/mermaid.tsx
@@ -30,7 +30,8 @@ export default function Mermaid() {
30
if (mermaidBlocks.length === 0) {
31
return;
32
}
33
- const {default: mermaid} = await import('mermaid');
+ // we have to dig like this as the nomral import doesn't work
34
+ const {default: mermaid} = await import('mermaid/dist/mermaid.esm.min.mjs');
35
mermaid.initialize({startOnLoad: false});
36
mermaidBlocks.forEach(lightModeblock => {
37
// get rid of code highlighting
0 commit comments