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:
parent
8d56f3fe84
commit
94edf47a12
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue