-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Invisible text, lines in SVG output #341
Comments
I got the same issue with v0.5.8 |
Seems like svg generated by CLI got a incorrect lowercase rule type '.edgepath' instead of '.edgePath'. |
+1, I got |
Closed by release 7.0.0, please reopen if issues remain. |
Btw, if I export to pdf format, it is ok, but the picture doesn't fit the whole page, hence importing the pdf instead of the svg gets a bad layout. |
Experienced the same issue opening the exported/downloaded SVG in InkScape. The browser (Firefox) renders it fine in a tab of its own. From that tab, I printed to PDF and opened that in InkScape, then saved as SVG after removing the cruft (select just the drawing, move away, select everything else remaining at the old location, delete, resize page to content, save as SVG). |
Can confirm that this issue persists, having exported an SVG from https://mermaid.live/edit today. |
When converting a graph to SVG with the mermaid CLI tool, paths and text are added to the SVG output, but are not visible when viewing the output file in Chrome or Inkscape.
The invisible lines appear to be caused by a missing stroke color, but I can't tell what's happening with the text.
Output appears correctly in the live editor, but the downloaded SVG appears to only be browser-friendly (I believe this is expected).
Actual mermaid call
Graph input
Test files
Input mmd file and output SVG and PNG files:
simple.mmd.zip
PNG Output:
simple mmd
Version info
The text was updated successfully, but these errors were encountered: