-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
Status: TriageNeeds to be verified, categorized, etcNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrectnew parser
Description
Description
Certain keywords such as style
, linkStyle
, class
, and classDef
require a space and only one after their use. This is not the case for direction
or subgraph
.
class
also requires a single space after the list of nodes.
The number of spaces should not be significant!
Steps to reproduce
flowchart LR
A-->B
class A,B class1
class A,B class1
%% ^ Parse error on line 4:
class A,B class1
%% ^ Parse error on line 6:
classDef class1,dsds color:#ef5
classDef class1,dsds color:#ef5
%% ^ Parse error on line 9:
style A fill:#a5a
style A fill:#a5a
%% ^ Parse error on line 12:
linkStyle 0 stroke:#ff3
linkStyle 0 stroke:#ff3
%% ^ Parse error on line 15:
Screenshots
No response
Code Sample
Setup
- Mermaid version: v11.11.0+c1c14e4
- Browser and Version: Firefox 142
Suggested Solutions
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Status: TriageNeeds to be verified, categorized, etcNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrectnew parser