-
Notifications
You must be signed in to change notification settings - Fork 253
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
mmdc not generating labels for SVG outputs #691
Comments
Opened a corresponding issue here with librsvg: |
It looks like this is an issue with mermaid-cli after all:
|
I have this problem too.
My input Markdown file and output PNG and SVG files are attached, as are how Inkscape and Gwenview render the SVG file. |
Some diagrams have a However, even if you do do this, some Mermaid diagrams still use CSS which is valid in the SVG 2.0, but isn't valid in SVG 1.1 that many libraries like support (see mermaid-js/mermaid#2102 and #447) As a work-around, you could try asking |
@aloisklink thanks, i tried creating a config file with
still has |
It might need to be E.g. the following diagram seems to not use ```mermaid
---
config:
# This htmlLabels at the root level of the config seems to do nothing
# htmlLabels: false
flowchart:
htmlLabels: false
---
flowchart TD
A
``` I'm not entirely sure why, since mermaid-js/mermaid#1431 seems to recommend using |
Ok so this appears to be a well known issue: mermaid-js/mermaid#2102 |
Describe the bug
mmdc
does not generate labels when outputting SVG files.This happens for flow charts and class charts on my machine, but not for sequence diagrams for example.
To Reproduce
Steps to reproduce the behavior:
Output:
Expected behavior
The graph should include labels like so:
Desktop (please complete the following information):
My gut feeling is this is related to rendering on my machine (pango, cairo, etc).
The text was updated successfully, but these errors were encountered: