mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
68.75k stars 6.08k forks source link

SVG rendering formatting issues with markdown input #5449

Open kurago-dev opened 2 months ago

kurago-dev commented 2 months ago

Description

When a node uses markdown formatting, some formatting issues appear.

From the live editor:

For example, this diagram:

flowchart TD
    A("test")
    B("`test format`")
flowchart TD
    A("test")
    B("`test format`")

Steps to reproduce

  1. Create a diagram with markdown format in one of the nodes
  2. Render the diagram as SVG
    • Open SVG in new tab
    • Download SVG from editor

Screenshots

Code Sample

No response

Setup

Suggested Solutions

No response

Additional Context

This is possibly related to #5159.