Fix for spaces being removed during "minify" build for "mermaid" snippet

"mindmap" style is not rendered correctly with "--minify"  because spaces are removed from final HTML
This commit is contained in:
FuadEfendi 2024-04-28 12:11:49 -04:00 committed by GitHub
parent f8a0fc4e24
commit ffaea4a4c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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