MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / initializeMermaid

Function initializeMermaid

frontend/app/element/markdown.tsx:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30let mermaidInstance: any = null;
31
32const initializeMermaid = async () => {
33 if (!mermaidInitialized) {
34 const mermaid = await import("mermaid");
35 mermaidInstance = mermaid.default;
36 mermaidInstance.initialize({ startOnLoad: false, theme: "dark", securityLevel: "strict" });
37 mermaidInitialized = true;
38 }
39};
40
41const Link = ({
42 setFocusedHeading,

Callers 1

renderMermaidFunction · 0.85

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected