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

Vertical alignment of multiline nodes incorrect when downloaded from live editor. #5159

Open
dloeckx opened this issue Dec 22, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@dloeckx
Copy link

dloeckx commented Dec 22, 2023

Description

When I download a png or svg from the live editor with a multi-line node, the vertical alignment of the text is wrong, causing the text to be partially invisible. When I open the png or svg in the browser, everything looks fine.

Steps to reproduce

  1. Go to the live editor
  2. Paste the code below
  3. Under actions, download the image with
    image --> the text in the node is partially invisible
  4. Under actions, open the image in a new window with
    image --> Everything looks fine.

Screenshots

Broken png (downloaded):
mermaid-diagram-2023-12-22-153806

Correct png (copy-paste from browser png):
image

Code Sample

flowchart TD
  TXT("`Multi
    Line`")

Setup

Suggested Solutions

No response

Additional Context

I encountered this bug when exporting pdfs with embedded Mermaid Graphs using Mermaid Diagrams for Confluence

@dloeckx dloeckx added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant