mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-09 12:16:15 +00:00
spotify-oauth.md (and any future docs) embed mermaid sequence/flow diagrams as fenced code blocks. Kramdown emits those as <pre><code class="language-mermaid">, which is not what Mermaid's auto-renderer looks for, so on the rendered site they show up as raw code instead of diagrams. Add docs/_includes/head-custom.html (a hook the pages-themes/minimal remote theme already exposes) to load Mermaid 11 as an ES module from jsDelivr, rewrite pre/code.language-mermaid nodes into div.mermaid, and call mermaid.run() once. No Jekyll plugin or _config.yml change needed — the include slot is honoured by the remote theme as-is. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>