Regression in class diagram note newlines #6126
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
The very first diagram example on https://mermaid.js.org/syntax/classDiagram.html shows explicit
\n
instead of newlines. The git editor shows the sameSteps to reproduce
Screenshots
Code Sample
As rendered by GitHub (with whatever that version is):
title: Animal example
classDiagram
note "From Duck till Zebra"
Animal <|-- Duck
note for Duck "can fly\ncan swim\ncan dive\ncan help in debugging"
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
Setup
Suggested Solutions
Additional Context
discovered when trying to update to 11.x from 10.x:
The text was updated successfully, but these errors were encountered: