From d3f9af456086b1b22460b749fa59240680fde51b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 23 May 2022 18:54:27 +0200 Subject: [PATCH] Add shortcode for mermaid diagrams --- layouts/shortcodes/mermaid.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 layouts/shortcodes/mermaid.html diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html new file mode 100644 index 0000000..5a1c574 --- /dev/null +++ b/layouts/shortcodes/mermaid.html @@ -0,0 +1,9 @@ +{{ $mermaidData := dict "theme" "default" }} +{{ $data := dict "code" .Inner "mermaid" $mermaidData }} + +
+ +
+ {{ .Get "caption" }} +
+