From ffaea4a4c8797cc7048efb559126215a3e9a980c Mon Sep 17 00:00:00 2001 From: FuadEfendi Date: Sun, 28 Apr 2024 12:11:49 -0400 Subject: [PATCH] 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 --- 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 -}}
+