Commit Graph
4 Commits
Author SHA1 Message Date
Neil 2a08d68631 fix: clear transient ui feedback timers (#3385) 2026-05-29 17:13:15 -07:00
Jinwoo Hong 8c016c91b2 fix: restore mermaid labels in markdown preview (#659) 2026-04-14 17:06:08 -07:00
Jinjing e5f75564af feat: add mermaid diagram rendering and code block copy button (#418)
* feat: add mermaid diagram rendering and code block copy button

- Add mermaid library for rendering mermaid diagrams in markdown preview
- Create MermaidBlock component for diagram rendering
- Create CodeBlockCopyButton component for copying code blocks
- Extract CSS into separate files for better organization

* fix: address review findings

- Sanitize mermaid SVG output with DOMPurify before innerHTML assignment
- Remove dead `initialized` flag in MermaidBlock
- Serialize concurrent mermaid.render() calls with a promise queue
- Add .catch() handlers for clipboard write promises
- Skip CodeBlockCopyButton wrapper for mermaid diagram blocks
2026-04-09 12:21:11 -07:00
NeilandClaude Opus 4.6 165502121b feat: polish markdown preview and rich editor (#369)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 13:03:43 -07:00