SVGs diagrams generated with Mermaid CLI do not display text labels
Issue Summary
SVGs diagrams generated with Mermaid CLI do not display text labels.
Steps to reproduce:
- install mermaid-cli
echo "graph TD; THIS-->THAT; THAT-->THIS" | mmdc -i -
- open
out.svg
in Eog or Gthumb
Example SVG
Resulting SVG:
https://gitlab.gnome.org/GNOME/librsvg/uploads/288f2493a9ccbf57aa1e892558eb0016/out.svg
How it actually displays in Eog and Gthumb:
Librsvg Version
- librsvg 2.58.0
- gdk-pixbuf2 2.42.11
Platform
- Arch Linux, x86-64, kernel 6.8.9
Additional logs
Please let me know if i can provide any more logs or help with sorting this out.
I ran into this issue while trying to implement a mermaid plugin for Zim-wiki and realised that the rendered svg diagrams have no labels.