Skip to content

Parsing error for \ in math formulas within new flowchart shape syntax #7007

@RarityBrown

Description

@RarityBrown

Description

flowchart RL
    %% OK
    A[$$x$$]

    %% OK
    B["$$x$$"]

    %% OK
    C@{ shape: rect, label: $$x$$}  

    %% OK
    D@{ shape: rect, label: "$$x$$"}  

    %% OK
    E[$$\sin x$$]

    %% OK
    F["$$\sin x$$"]
    
    %% OK
    G@{ shape: rect, label: $$\sin x$$}  

    %% bug
    H@{ shape: rect, label: "$$\sin x$$"}  

will get:

flowchart RL
    %% OK
    A[$$x$$]

    %% OK
    B["$$x$$"]

    %% OK
    C@{ shape: rect, label: $$x$$}  

    %% OK
    D@{ shape: rect, label: "$$x$$"}  

    %% OK
    E[$$\sin x$$]

    %% OK
    F["$$\sin x$$"]
    
    %% OK
    G@{ shape: rect, label: $$\sin x$$}  

    %% bug
    H@{ shape: rect, label: "$$\sin x$$"}  
Loading

Steps to reproduce

copy the code

Screenshots

No response

Code Sample


Setup

  • Mermaid version: 11.12.0

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions