We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17de708 commit 38c8ee1Copy full SHA for 38c8ee1
layouts/_default/_markup/render-codeblock-mermaid.html
@@ -1,4 +1,4 @@
1
<pre class="mermaid hx-mt-6">
2
- {{- .Inner | safeHTML -}}
+ {{ .Inner | htmlEscape | safeHTML }}
3
</pre>
4
{{- .Page.Store.Set "hasMermaid" true -}}
layouts/partials/scripts.html
@@ -5,8 +5,7 @@
5
{{- partial "scripts/search.html" . -}}
6
7
{{/* Mermaid */}}
8
-{{/* FIXME: need to investigate .Page.Store hasMermaid is set for homepage */}}
9
-{{- if and (.Page.Store.Get "hasMermaid") (not .Page.IsHome) -}}
+{{- if (.Store.Get "hasMermaid") -}}
10
{{- partial "scripts/mermaid.html" . -}}
11
{{- end -}}
12
0 commit comments