Release Date: 2026-07-09
Author: Fu-Jie
Version: 0.5.2
What's New
📊 Mermaid Diagrams with <br> Labels Now Render
Mermaid diagrams whose node or edge labels contain <br> line breaks previously exported as a blank square.
Mermaid 11 emits <foreignObject> HTML labels even when the per-diagram flowchart.htmlLabels is set to false, and an unclosed <br> inside that HTML makes the rendered SVG invalid XML. The plugin rasterizes each diagram by loading its SVG into an <img> and drawing it onto a <canvas> — the invalid SVG fails to load, so nothing is drawn (a correctly-sized but blank square).
Setting htmlLabels: false at the top level of mermaid.initialize (the per-diagram flag alone is ignored by Mermaid 11) suppresses <foreignObject> entirely: labels render as native SVG <text>, the SVG stays valid XML, and the diagram rasterizes correctly.
Compatibility
- No dependency or requirement changes. Still requires Open WebUI ≥ 0.10.2.
For full commit history, see the GitHub releases page.
Version Changes
Plugin Updates
📚 Documentation Portal
🐛 Report Issues
Full Changelog: smart-mind-map-v1.0.2...release-2026.07.09