Markdown strings break colour styling #4957
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
So using the example in the docs for styling nodes
flowchart LR
id1(Start)-->id2("Stop")
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
If I change id2 to use markdown string it loses its colour
flowchart LR
id1(Start)-->id2("
Stop
")style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
I've also tried using classes but that also produces the same result.
flowchart LR
id1(Start)-->id2("Stop")
classDef B fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
style id1 fill:#f9f,stroke:#333,stroke-width:4px
id2:::B
flowchart LR
id1(Start)-->id2("
Stop
")classDef B fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
style id1 fill:#f9f,stroke:#333,stroke-width:4px
id2:::B
Steps to reproduce
Use this
flowchart LR
id1(Start)-->id2("Stop")
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
then change id2("Stop") to id2("
Stop
")Screenshots
Code Sample
No response
Setup
Using mermaid.live and also the developer version of this and also an older version on my local machine.
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: