SVG image displays incorrectly in PDF output #5126
With pandoc version 2.5, when the SVG image below is linked to in a markdown file and output is produced with the command below, the SVG image appears incorrectly. I expect to see black lines and light-blue circles, as shown in the attached screenshot (this is how it appears when viewed with Quick Look or with Firefox). Instead, the circles are black and the lines are not visible.
I don’t know anything about the SVG format, so it could be that this SVG file (which was produced with mermaid CLI) is invalid. If so, we can close this issue and I will file another on their repository.
Desired/expected appearance (shown with Quick Look):
Undesired/unnexpected appearance in pandoc output:
I confirm that. The issue seems to be in
As a workaround, I suggest you try to export directly into PDF using the mermaid CLI tool and include PDFs in your document.
Ok, there is a solution.https://gitlab.gnome.org/GNOME/librsvg/issues/428
Like the svg file:
If I remove all '#mermaid-1578839518522' in style tag group , the out put is OK