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

<br> in graphs breaks SVG and PNG generation #8

Closed
epoberezkin opened this issue Jan 12, 2020 · 3 comments
Closed

<br> in graphs breaks SVG and PNG generation #8

epoberezkin opened this issue Jan 12, 2020 · 3 comments
Assignees

Comments

@epoberezkin
Copy link

<br> is supported in sequence diagrams both in live editor and when SVG/PNG files are generated.

In normal graphs it is supported in live editor, but the downloaded SVG is broken and PNG generation fails completely:

graph TD
  A[Christmas] -->|Get money| B("Go<br>shopping")
  B --> C{Let me think}
  C -->|One| D[Laptop]
  C -->|Two| E[iPhone]
  C -->|Three| F[fa:fa-car Car]
@GDFaber
Copy link
Member

GDFaber commented Jan 12, 2020

Hi @epoberezkin,

if you disable html labels by using htmlLabels: false in the flowchart configuration, the texts are created using <text> instead of html code with line breaks: Example in live editor

This has also been reported in mermaid#1111, do you agree on closing your issue as a duplicate?

@GDFaber GDFaber self-assigned this Jan 12, 2020
@epoberezkin
Copy link
Author

Thank you - sorry, missed that issue.

Closing as duplicate.

@GDFaber
Copy link
Member

GDFaber commented Jan 13, 2020

Nothing to be sorry about :) Thanks for reaching out.

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

2 participants