diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html
index 4b1b591..b5deb66 100644
--- a/layouts/_default/_markup/render-codeblock-mermaid.html
+++ b/layouts/_default/_markup/render-codeblock-mermaid.html
@@ -1,7 +1,7 @@
{{ if not (.Page.Scratch.Get "mermaid") }}
-
+
{{ .Page.Scratch.Set "mermaid" true }}
{{ end }}