kitian616 / jekyll-TeXt-theme

💎 🐳 A super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc.
https://kitian616.github.io/jekyll-TeXt-theme/
MIT License
3.12k stars 2.53k forks source link

Bug: Mermaid labels were not displayed properly. #468

Open jinghuazhao opened 7 months ago

jinghuazhao commented 7 months ago

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)

jinghuazhao commented 7 months ago

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, https://github.com/mermaid-js/mermaid/issues/790

jinghuazhao commented 7 months ago

image This is what the diagram looks now.