summaryrefslogtreecommitdiff
path: root/templates/shortcodes/mermaid.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shortcodes/mermaid.html')
-rw-r--r--templates/shortcodes/mermaid.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/shortcodes/mermaid.html b/templates/shortcodes/mermaid.html
new file mode 100644
index 0000000..88bbdc4
--- /dev/null
+++ b/templates/shortcodes/mermaid.html
@@ -0,0 +1,8 @@
+{% set invertible = invertible | default(value=true) %}
+{% set full_width = full_width | default(value=false) %}
+<noscript>
+ <strong>⚠️ JavaScript is required to render the diagram.</strong>
+</noscript>
+<pre class="mermaid{% if invertible %} invertible-image{% endif %}{% if full_width %} full-width{% endif %}">
+ {{ body | safe }}
+</pre>