Fix for spaces being removed during "minify" build for "mermaid" snippet (#613)

"mindmap" style is not rendered correctly with "--minify"  because spaces are removed from final HTML
This commit is contained in:
FuadEfendi 2024-10-01 16:24:24 -04:00 committed by GitHub
parent 8d56f3fe84
commit 94edf47a12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,6 @@
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}
<p class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{- .Inner -}}
</p>
<pre class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{- .Inner | safeHTML -}}
</pre>