Mermaid-Chart / issue-tracker

Other
7 stars 1 forks source link

diagrams with SVG format cut off text #44

Open ArealTal opened 7 months ago

ArealTal commented 7 months 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 7 months 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 3 months ago

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

ArealTal commented 3 months ago

Thank you @jgreywolf!