From 2ba2d3ad1547f7b3e30b94cc070f64f2940a66ca Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 9 Feb 2026 21:17:44 +0100 Subject: Mermaid support --- .../_default/_markup/render-codeblock-mermaid.html | 4 +++ layouts/partials/head/index.html | 30 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 layouts/_default/_markup/render-codeblock-mermaid.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..d22d89e --- /dev/null +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +{{- .Page.Store.Set "hasMermaid" true -}} +
+  {{- .Inner | safeHTML -}}
+
diff --git a/layouts/partials/head/index.html b/layouts/partials/head/index.html index d2b3826..85f73eb 100644 --- a/layouts/partials/head/index.html +++ b/layouts/partials/head/index.html @@ -4,3 +4,33 @@ {{- if or (.HasShortcode "chart") (.HasShortcode "perf-chart") -}} {{- end -}} + +{{- if .Page.Store.Get "hasMermaid" -}} + +{{- end -}} -- cgit v1.3