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

Multiline does not work since v11 #6048

Open
pinage404 opened this issue Nov 11, 2024 · 1 comment
Open

Multiline does not work since v11 #6048

pinage404 opened this issue Nov 11, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@pinage404
Copy link

pinage404 commented Nov 11, 2024

Description

Multiline are not suported anymore

Until 10.9.3, it was ok

image

Starting since 11.0.0, multiline are not supported anymore
image

Even in the last release 11.4.0
image

Even the develop branch

Steps to reproduce

  1. add a \n in a label
  2. observe that the newline is not rendered, \n is displayed as plain text

Screenshots

No response

Code Sample

flowchart TD
    A[Christmas] -->|Get money| B(Go shopping)
    B --> C{Let me\nthink}
    C -->|One| D[Laptop]
    C -->|Two| E[iPhone]
    C -->|Three| F[fa:fa-car Car]

Setup

  • Mermaid version: 11.0.0 and above
  • Browser and Version: Zen 1.0.1-a.18 (Firefox 132.0.1) (64 bits)

Suggested Solutions

No response

Additional Context

No response

@pinage404 pinage404 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 11, 2024
@daveyarwood
Copy link

daveyarwood commented Nov 18, 2024

I noticed this as well in Notion:

Screenshot 2024-11-18 at 1 05 36 PM

Whereas up until recently, \n inside a label was rendered as a newline.

EDIT: That second MultipleLines line isn't really necessary. I took it out and the behavior is the same -- the issue is still reproduced.

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

2 participants