Sha256: bc138a8a13def63f7fe3a832670b559dd371ade228f97c662afa81da792c9ce7
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 Bytes
Contents
<!-- Include mermaid-js scripts. --> {% if page.mermaid || site.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hematite-0.1.5 | _includes/mermaid_includes.html |
hematite-0.1.4 | _includes/mermaid_includes.html |
hematite-0.1.3 | _includes/mermaid_includes.html |