forked from deepStateMirrors/tabi
✨ feat: add Mermaid diagram support (#370)
This commit is contained in:
parent
13d305ac1a
commit
a7e78b29ab
25 changed files with 2437 additions and 19 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue