Skip to content
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

Mermaid 8.0.0-rc.8 creates SVG files that do not display correctly in Inkscape and Latex #103

Closed
RedX2501 opened this issue May 23, 2018 · 16 comments

Comments

@RedX2501
Copy link

We user mermaid.cli from mermaid-filter to generate PDF files from Markdown.

When using mermaild-cli 0.4.6 it was creating black tags for the labels. Firefox version 0.5.6 did display the SVG correctly though.

bad svg

According to devDependencies mermaid.cli uses mermaid 8.0.0-rc.8.
Replacing the minified mermaid version with 7.1.2 fixed the problem. Mermaid 8.0.0-rc.8 still had the issue.

@tewarid
Copy link

tewarid commented Jul 5, 2018

Found a similar issue with librsvg2 on Linux tewarid/docker-pandoc#8

@stale
Copy link

stale bot commented Jun 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@BioinfoTongLI
Copy link

It seems that it's not fixed yet ? Does that mean we have to tick with 7.x.x while 8.2.1 is already released ?

@nicolaidea
Copy link

it is not fixed yet. =(

@IOrlandoni IOrlandoni reopened this Sep 25, 2019
@mermaid-js mermaid-js deleted a comment from RedX2501 Sep 26, 2019
@mermaid-js mermaid-js deleted a comment from nicolaidea Sep 26, 2019
@epower
Copy link

epower commented Oct 23, 2019

This might be a related issue (at least for Pandoc/Latex) https://gitlab.gnome.org/GNOME/librsvg/issues/428

@tonytonyjan
Copy link

I can confirm that this issue still exists with the version 8.4.4

@Gowa2017
Copy link

I have the same problem too.

@Gowa2017
Copy link

Gowa2017 commented Jan 14, 2020

https://gitlab.gnome.org/GNOME/librsvg/issues/428

It's OK when I render gantt.But render graph has same problem.

Pandoc user librsvg to convert svg ,the rsvg-convert will report :

CSS parsing error
CSS parsing error
CSS parsing error
CSS unrecoverable error
parsing error: 497:1:could not recognize next production
parsing error: 499:3:while parsing rulset: current char must be a '}'
parsing error: 499:2:while parsing declaration: next property is malformed

@ggarciatisa
Copy link

https://gitlab.gnome.org/GNOME/librsvg/issues/428

It's OK when I render gantt.But render graph has same problem.

Pandoc user librsvg to convert svg ,the rsvg-convert will report :

CSS parsing error
CSS parsing error
CSS parsing error
CSS unrecoverable error
parsing error: 497:1:could not recognize next production
parsing error: 499:3:while parsing rulset: current char must be a '}'
parsing error: 499:2:while parsing declaration: next property is malformed

Same error

@archiloque
Copy link

I created a ticket on Inkscape to track the issue on their side https://gitlab.com/inkscape/inbox/-/issues/3268#note_378199615

@jgreywolf
Copy link

Is this still considered an issue? Or more specifically, is this an issue from mermaid perspective, or another project? (not sure from thread)

@jgreywolf jgreywolf transferred this issue from mermaid-js/mermaid Feb 25, 2021
@jgreywolf
Copy link

Moving to CLI after conversation with @knsv

@LuisBL
Copy link

LuisBL commented Apr 24, 2021

does not display correctly on LibreOffice too

@MindaugasLaganeckas
Copy link
Member

I am closing the issue, because it seems related to another project and not mermaid-cli. If you disagree, please, reopen the issue and give a short status update. Thanks! 😄 🏅

@Grummfy
Copy link

Grummfy commented Jan 18, 2022

well most of the tools don't render it properly, so I'm not sure it's entirely to the tools
I Have the same issue with

  • intelij (phpstorm)
  • imagemagick (with convert command)
  • libreoffice
  • firefox
  • inkscape
  • ...

Globally any tools that I use have some sort of issue, and they use different technology (c, rust, java, node, etc) so it's seems more global.

@chuxubank
Copy link

chuxubank commented Jan 25, 2022

Emacs (with librsvg support) do not display it correctly too.

Screen.Recording.2022-01-22.at.5.16.38.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests