SVG rendering formatting issues with markdown input
kurago-dev opened this issue · comments
kurago-dev commented
Description
When a node uses markdown formatting, some formatting issues appear.
From the live editor:
- Additional height is added to the node on the SVG output of the diagram when clicking "open SVG in new tab" (screenshot 1).
- Text is cut off (but height remains the same) on the SVG output of the diagram when clicking "download SVG" (screenshot 2).
For example, this diagram:
flowchart TD
A("test")
B("`test format`")
flowchart TD
A("test")
B("`test format`")
Steps to reproduce
- Create a diagram with markdown format in one of the nodes
- Render the diagram as SVG
- Open SVG in new tab
- Download SVG from editor
Screenshots
Code Sample
No response
Setup
- Mermaid version: 10.8.0
- Browser and Version: Any
Suggested Solutions
No response
Additional Context
This is possibly related to #5159.