hotfix pagebreak
This commit is contained in:
@@ -38,6 +38,9 @@ async function renderMermaid() {
|
||||
const nodes = [...content.querySelectorAll(".mermaid")];
|
||||
if (!nodes.length) return;
|
||||
try {
|
||||
nodes.forEach(node => {
|
||||
if (!node.dataset.mermaidSource) node.dataset.mermaidSource = node.textContent || "";
|
||||
});
|
||||
const mermaid = await loadMermaid();
|
||||
mermaid.initialize({ startOnLoad: false, theme: getTheme() === "dark" ? "dark" : "default", securityLevel: "strict" });
|
||||
await mermaid.run({ nodes });
|
||||
|
||||
Reference in New Issue
Block a user