Mermaid-Chart / issue-tracker

Other
11 stars 2 forks source link

diagrams with SVG format cut off text #44

Open ArealTal opened 1 year ago

ArealTal commented 1 year ago

Describe the bug URLs obtained from mermaid provide images in SVG format that result in nodes that are cutting off the last 1-2 characters.

To Reproduce Steps to reproduce the behavior:

  1. Copy diagram link:
  2. Paste the URL into your browser.
  3. Notice that 1-2 characters of some nodes are cut off.

Expected behavior You can see all of the text of each and every node.

Screenshots Screenshot 2023-11-17 125747

Laptop (please complete the following information):

Workaround Simply substitute "svg" with "png" at the end of the URL.

Additional Context This was apparently an issue 4 years ago, and has since resurfaced: https://github.com/mermaid-js/mermaid/issues/790

jgreywolf commented 1 year ago

Thank you for your feedback! I have created an issue internally and we are tracking this there. I will update you as soon as we have a better idea of the fix and timeline

jgreywolf commented 8 months ago

FYI - this issue is currently being worked on, and hope to have an update/release in the near future

ArealTal commented 8 months ago

Thank you @jgreywolf!