{%- comment -%} Render Mermaid diagrams in docs pages. Markdown ```mermaid fenced blocks are emitted by Kramdown as
…, but Mermaid only
auto-renders elements with class="mermaid". This snippet rewrites the
pre/code nodes into div.mermaid before initialising the library.
Loaded as an ES module from the jsDelivr CDN so we don't have to vendor
the library into the repo. Pinned to a major version for cache stability.
{%- endcomment -%}