diff --git a/template.html b/template.html
index 7609fc3..294a81a 100644
--- a/template.html
+++ b/template.html
@@ -20,10 +20,13 @@
$endif$
$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$
+
$for(css)$
$endfor$
@@ -80,6 +83,17 @@
header.innerHTML = " - " + header.innerHTML;
});
});
+
+ // Render mermaid diagrams
+
+ document.querySelectorAll("pre.mermaid").forEach((pre) => {
+ let code_el = pre.querySelector("code");
+ if(code_el) {
+ pre.innerHTML = code_el.innerHTML;
+ }
+ });
+
+ mermaid.initialize();
});
@@ -88,9 +102,9 @@