SIGN IN SIGN UP

fix(mermaid): text invisible due to DOMPurify stripping style & foreignObject (#119)

DOMPurify.sanitize() removes <style> blocks and strips all content
inside <foreignObject> elements. Mermaid v11+ relies on both for
correct text and node rendering, causing invisible text in the editor.

Remove DOMPurify sanitization for Mermaid SVG since the output is
generated by the trusted mermaid library from validated diagram syntax.
G
Ginanjar Noviawan committed
4e3593233298b8ee68b312642bb15f265fb1fe97
Parent: dec65b5
Committed by GitHub <noreply@github.com> on 5/8/2026, 4:13:39 AM