Skip to content

Equal sign "=" no longer valid in participant of sequence diagrams #6171

Open
@digitalmoksha

Description

@digitalmoksha

Description

In 11.4, using an = in a participant name of a sequence diagram gives an error. This used to work in 10.7.0.

Steps to reproduce

When using 10.7.0, the graph

sequenceDiagram
   x->>y=true: Transition to true

used to work.

Screenshot 2025-01-06 at 11 28 13 AM

However now with 11.4 (haven't tested any other previous 11.x versions) it gives an error

Error: Error: Parse error on line 2:
...enceDiagram x->>y=true: Transition to
----------------------^
Expecting 'NEWLINE', 'AS', ',', 'SOLID_OPEN_ARROW', 'DOTTED_OPEN_ARROW', 'SOLID_ARROW', 'BIDIRECTIONAL_SOLID_ARROW', 'DOTTED_ARROW', 'BIDIRECTIONAL_DOTTED_ARROW', 'SOLID_CROSS', 'DOTTED_CROSS', 'SOLID_POINT', 'DOTTED_POINT', 'TXT', got 'INVALID'

This seems to be a backwards compatibility bug.

Screenshots

No response

Code Sample

https://develop.git.mermaid.live/edit#pako:eNo1jcEOwjAMQ38lynn8QCV24g_gmEvUhq2CppC2EtO0f6eV4GZbfvaOPgdBh0XeTdTLJfJinEgB4HOa5-1crYmDm7GWWGNWqBlGRooTJrHEMfSBfSCEdZUkhK7LwPYgJD16j1vN1009uoFOaLktK7o7P0t37RW4_q9_6fEFLbY1fg

Setup

  • Mermaid version: 11.4
  • Browser and Version: [Chrome, Edge, Firefox]: Chrome 131.0.6778.205 macOS

Suggested Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions