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

Bug: Mermaid labels were not displayed properly. #468

Open
jinghuazhao opened this issue Jan 17, 2024 · 2 comments
Open

Bug: Mermaid labels were not displayed properly. #468

jinghuazhao opened this issue Jan 17, 2024 · 2 comments

Comments

@jinghuazhao
Copy link

Description

I have embedded a mermaid diagram, a flowchart with URLs associated with each node, it would be perfectly fine with Mermaid Live Editor but labels in the associate svg would be cut off from the bottom.

Steps to Reproduce

  1. The URL for the diagram is here, http://tinyurl.com/54j8t9bp
  2. From the left panel, select Actions, save links from svg to obtain the corresponding figure.
  3. Paste the svg directly into Markdown document.

Expected behavior

image

Screenshots (If Necessary)

image

Environment (If Necessary)

  • OS: [e.g. Github Pages, Windows 10, macOS 10.13, Linux(CentOS 7.5), iOS 11, Android 8(Pixel 2)]
  • Ruby: [e.g. Github Pages, 2.4.0p0]
  • Jekyll: [e.g. Github Pages, 3.7.3]
  • Browser: [e.g. Chrome, Safari, Edge, Firefox]
@jinghuazhao
Copy link
Author

This appears to be a problem with SVG itself by Mermaid Live Editor, and a compromise is to set font-size: 90%; Also see here, mermaid-js/mermaid#790

@jinghuazhao
Copy link
Author

image
This is what the diagram looks now.

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

1 participant