tabi/templates/shortcodes/mermaid.html
welpo cbd1f1df6c
feat: add Mermaid diagram support
- Resolves #369
- Implement Mermaid shortcode for diagram rendering
- Add configuration options for enabling Mermaid and local/CDN serving
- Include documentation for Mermaid usage and configuration
- Update copy codeblock to clipboard JS to avoid conflict
- Update tabi project and README description to mention the feature
2024-08-28 14:20:10 +02:00

8 lines
349 B
HTML

{% 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>