mirror of
https://github.com/welpo/tabi.git
synced 2025-12-15 04:08:43 +01:00
- 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
8 lines
349 B
HTML
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>
|