buzz
buzz copied to clipboard
feat(desktop): render Mermaid diagrams in Markdown
Summary
- Render fenced
mermaidblocks across the shared desktop Markdown surface. - Lazy-load Mermaid and isolate generated SVG as a Blob-backed image.
- Preserve the original source block as the fallback for invalid, empty, or oversized diagrams.
Related issue
Fixes #3694
Testing
just cipnpm --filter buzz build:e2epnpm --filter buzz exec playwright test tests/e2e/messaging.spec.ts --project=smoke -g "Mermaid fences"
Before and after screenshots will be attached in a follow-up comment.
Screenshots
Before
Mermaid source is shown as a regular fenced code block.

After
The same fenced block renders as a theme-aware diagram.
