From 173224079f68ae6bd561df29e8ad44d3aab71b05 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 24 Sep 2022 13:17:32 +0100 Subject: [PATCH] fix: mindmap first item rendered indented --- .../layouts/_default/_markup/render-codeblock-markmap.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/wowchemy/layouts/_default/_markup/render-codeblock-markmap.html b/modules/wowchemy/layouts/_default/_markup/render-codeblock-markmap.html index 1890683f..e69a40ab 100644 --- a/modules/wowchemy/layouts/_default/_markup/render-codeblock-markmap.html +++ b/modules/wowchemy/layouts/_default/_markup/render-codeblock-markmap.html @@ -1,6 +1,5 @@
-
-    {{- .Inner | safeHTML -}}
-  
+{{/* No indentation before PRE and .Inner otherwise mindmap first item will be indented */}} +
{{- .Inner | safeHTML -}}
{{ .Page.Store.Set "has_markmap" true }}