Follow-up to #55. ```mermaid blocks show as code and $…$ / $$…$$ as text. Render them like GitHub does:
Mermaid: a lazily loaded asset (mermaid.js, roughly 2 MB) fetched over ttyd only when a file has a mermaid block and cached in IndexedDB like the editor. It renders to SVG inside the shadow root with securityLevel: 'strict', and the SVG is run through DOMPurify.
Math: KaTeX as another lazy asset, applied to text nodes after sanitizing.
Both follow the light/dark theme.
Follow-up to #55. ```` ```mermaid ```` blocks show as code and `$…$` / `$$…$$` as text. Render them like GitHub does:
- **Mermaid:** a lazily loaded asset (`mermaid.js`, roughly 2 MB) fetched over ttyd only when a file has a mermaid block and cached in IndexedDB like the editor. It renders to SVG inside the shadow root with `securityLevel: 'strict'`, and the SVG is run through DOMPurify.
- **Math:** KaTeX as another lazy asset, applied to text nodes after sanitizing.
- Both follow the light/dark theme.
jared
added this to the backlog milestone 2026-10-22 21:25:21 -04:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to #55.
```mermaidblocks show as code and$…$/$$…$$as text. Render them like GitHub does:mermaid.js, roughly 2 MB) fetched over ttyd only when a file has a mermaid block and cached in IndexedDB like the editor. It renders to SVG inside the shadow root withsecurityLevel: 'strict', and the SVG is run through DOMPurify.