From 94edf47a1230f0d94a828dcda7662b321f867b4b Mon Sep 17 00:00:00 2001 From: FuadEfendi Date: Tue, 1 Oct 2024 16:24:24 -0400 Subject: [PATCH] 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 --- layouts/shortcodes/mermaid.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html index ff90335..28fb80d 100644 --- a/layouts/shortcodes/mermaid.html +++ b/layouts/shortcodes/mermaid.html @@ -7,6 +7,6 @@ {{ .Page.Scratch.Set "mermaid" true }} {{ end }} -

- {{- .Inner -}} -

+
+  {{- .Inner | safeHTML -}}
+