✨ feat: add Mermaid diagram support (#370)
This commit is contained in:
8
templates/shortcodes/mermaid.html
Normal file
8
templates/shortcodes/mermaid.html
Normal file
@@ -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>
|
Reference in New Issue
Block a user