From 8913978ba28046c2e9adb190e94353de2ed788c9 Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 1 Jul 2024 08:39:24 +0800 Subject: [PATCH] fix: format diagram by adding tab at the beginning of newline --- layouts/_default/_markup/render-codeblock-mermaid.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index c2af96f..9ba8c73 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -1,4 +1,4 @@ {{ .Page.Store.Set "hasMermaid" true -}}
-    {{- .Inner -}}
+    {{ .Inner | replaceRE "\n" "\n\t" }}