summaryrefslogtreecommitdiff
path: root/layouts/_default/_markup
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2024-09-21 21:33:39 +0200
committerGitHub <noreply@github.com>2024-09-21 21:33:39 +0200
commita57222ceaf02c1cc7e93fe555c9da41b42c7e3dc (patch)
tree2d03e7be4d701f2f4b05c7a9fc78a6284d041742 /layouts/_default/_markup
parent6f1d9131091ae3af22f8c52ba8f04c3a9d5a41dd (diff)
parent8905a1cab9073fe18050ebf5199ab7653c201e6c (diff)
Merge pull request #26 from simon-siggaard/main
add support for Mermaid diagrams
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r--layouts/_default/_markup/render-codeblock-mermaid.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html
new file mode 100644
index 0000000..bb7bf42
--- /dev/null
+++ b/layouts/_default/_markup/render-codeblock-mermaid.html
@@ -0,0 +1,4 @@
+<pre class="mermaid">
+ {{- .Inner | safeHTML }}
+</pre>
+{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file