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

SVG rendering formatting issues with markdown input #5449

Open
kurago-dev opened this issue Apr 8, 2024 · 0 comments
Open

SVG rendering formatting issues with markdown input #5449

kurago-dev opened this issue Apr 8, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@kurago-dev
Copy link

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`")
Loading

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

  • image
    image

  • image
    image

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.

@kurago-dev kurago-dev added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant