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

9 lines
253 B
JavaScript
Raw Normal View History

2023-04-24 16:18:54 +02:00
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",
});
});