Line breaks are not rendered correctly in class diagrams #6160
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
When using \n in class diagrams, the line break is not rendered, the \n symbol is rendered instead.
The issue #1745 was closed some time ago, but the solution is no longer valid.
Steps to reproduce
The following two diagrams can be used to reproduce the error in version 11.4.0:
Diagram from the issue #1745:
Diagram from the mermaid class diagram documentation:
Screenshots
Screenshot for the diagram from the issue #1745 in mermaid live:
Screenshot for the diagram from the documentation:
Code Sample
No response
Setup
Mermaid Live:
Mermaid CLI docker:
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: