mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
980 stars 181 forks source link

Generated SVG file truncates labels in flow diagrams #42

Open EduardSergeev opened 5 years ago

EduardSergeev commented 5 years ago

Live editor displays all text correctly: image

But downloaded SVG file truncates the texts: image Tested in Chrome and Edge (same picture)

EduardSergeev commented 5 years ago

I bit of investigation: apparently online version has font-size: 14px; set for body while *.svg file has font-size: 16px; (default browser font-size?)

roji commented 5 years ago

Encountered this as well. In CLI-generated SVGs everything is fine.