Skip to content

v0.9.1

Choose a tag to compare

@github-actions github-actions released this 19 Aug 18:06
· 4 commits to main since this release

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_REGEXP was copied from the markdown-link profile onto mermaid
    SVGs, so viewBox, path d, width, and marker-end="url(#…)" were
    stripped. Diagrams now keep those attributes; scripts and foreignObject are
    still dropped.