Skip to content

Multiline does not work since v11 #6048

Open
@pinage404

Description

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

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions