diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-11-13 00:51:09 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-11-13 00:51:09 +0100 |
| commit | b4307e276b04aa270f213c6c932a666e486dd1ad (patch) | |
| tree | 742e488af3878ffa99a92431903812aa9f5a38e9 /layouts/_markup | |
| parent | 2214b1463f87eb4d6291e71cb65aed25f5054e08 (diff) | |
Add mermaid support for rendering graphs
Diffstat (limited to 'layouts/_markup')
| -rw-r--r-- | layouts/_markup/render-codeblock-mermaid.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_markup/render-codeblock-mermaid.html b/layouts/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..42e8abf --- /dev/null +++ b/layouts/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +<pre class="mermaid"> + {{ .Inner | htmlEscape | safeHTML }} +</pre> +{{ .Page.Store.Set "hasMermaid" true }} |
