summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorOle Mussmann <gitlab+account@ole.mn>2025-01-25 21:06:35 +0100
committerOle Mussmann <gitlab+account@ole.mn>2025-01-25 21:09:02 +0100
commita9d730a4c801fba72570291409c8c82c126f157b (patch)
tree6609d20275d81e8114ae36a692ecaf057fd1f8fd /layouts
parent22bfe56c1316437641509fb61c36b32048206662 (diff)
fix mermaid diagram rendering
closes #69
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-codeblock-mermaid.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html
index bb7bf42..dcd9c98 100644
--- a/layouts/_default/_markup/render-codeblock-mermaid.html
+++ b/layouts/_default/_markup/render-codeblock-mermaid.html
@@ -1,4 +1,4 @@
<pre class="mermaid">
- {{- .Inner | safeHTML }}
+ {{- .Inner | htmlEscape | safeHTML }}
</pre>
-{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file
+{{ .Page.Store.Set "hasMermaid" true }}