Repository navigation
v0.9.1
Mermaid diagrams in the markdown preview rendered as empty boxes because the
SVG sanitizer treated path data and viewBox as unsafe URIs.
Fixed
- Mermaid diagrams lost their geometry after sanitization. DOMPurify's
ALLOWED_URI_REGEXPwas copied from the markdown-link profile onto mermaid
SVGs, soviewBox, pathd,width, andmarker-end="url(#…)"were
stripped. Diagrams now keep those attributes; scripts andforeignObjectare
still dropped.