Sha256: 3a9aad5750f489bcb7ef5be6099e2009b39ccc67917fd763bbbeae66ded2228f

Contents?: true

Size: 733 Bytes

Versions: 13

Compression:

Stored size: 733 Bytes

Contents

<!--
    Include mermaid-js scripts.
-->
{% if page.mermaid or site.mermaid or layout.mermaid %}
<script>
    var MERMAID_CONFIG = window.MERMAID_CONFIG ?? {{ site.mermaid_config | jsonify }} ?? { };

    // Load defaults
    MERMAID_CONFIG.startOnLoad ??= true;
    MERMAID_CONFIG.htmlLabels ??= true;
</script>
<script
        defer
        src="{{ "assets/plugin/mermaid/mermaid.js" | relative_url }}"
        {% comment %}
        Here, we're also calling "mermaid.init()" because of the defer attribute — it's
        possible that the window has already loaded (and thus startOnLoad may have no effect).
        {% endcomment %}
        onload="mermaid.initialize(MERMAID_CONFIG); mermaid.init();" >
</script>

{% endif %}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hematite-0.1.18 _includes/mermaid_includes.html
hematite-0.1.17 _includes/mermaid_includes.html
hematite-0.1.16 _includes/mermaid_includes.html
hematite-0.1.15 _includes/mermaid_includes.html
hematite-0.1.14 _includes/mermaid_includes.html
hematite-0.1.13 _includes/mermaid_includes.html
hematite-0.1.12 _includes/mermaid_includes.html
hematite-0.1.11 _includes/mermaid_includes.html
hematite-0.1.10 _includes/mermaid_includes.html
hematite-0.1.9 _includes/mermaid_includes.html
hematite-0.1.8 _includes/mermaid_includes.html
hematite-0.1.7 _includes/mermaid_includes.html
hematite-0.1.6 _includes/mermaid_includes.html