mylloon.fr/static/js/libs/mermaid.js

8 lines
253 B
JavaScript

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",
});
});