feat: add Mermaid diagram support (#370)

This commit is contained in:
Óscar 2024-08-28 14:56:30 +02:00 committed by GitHub
parent 13d305ac1a
commit a7e78b29ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 2437 additions and 19 deletions

View 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>