import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs"; window.addEventListener("load", async () => { mermaid.initialize({ startOnLoad: false }); await mermaid.run({ querySelector: ".language-mermaid", }); });