Dashboard › binpatch › Mermaid Starlight renderer: loreai PR #…
019fb4cd-6777-7a17-91a9-8e7c1496523d| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 4 | 11h ago |
| cli | 2 | 7d ago |
Steps:
mermaid@11.16.0 as runtime dep in website/package.json.website/integrations/mermaid-renderer.mjs — uses injectScript("page", ...), scans pre[data-language="mermaid"], extracts .ec-line textContent, calls mermaid.render(id, source), swaps <pre> for <div class="mermaid"> containing SVG. Fallback pre.textContent = source on error.astro.config.mjs in this order: prefixBaseLinks(), mermaidRenderer(), faviconAssets(), then starlight({...}).startOnLoad:false, theme:"neutral", securityLevel:"loose", fontFamily:"var(--sl-font)".Bundles mermaid instead of CDN (loreai pattern). Source: loreai PR #1528.