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:
parent
f8a0fc4e24
commit
ffaea4a4c8
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue