Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid Sequence Diagrams - alt with more than one else blocks fails to render #1520

Open
vksiva opened this issue Sep 1, 2018 · 2 comments

Comments

@vksiva
Copy link

vksiva commented Sep 1, 2018

Mermaid Sequence Diagram: Alternative paths syntax breaks when there are more than 1 "else" blocks. This works fine in the mermaid live editor - https://mermaidjs.github.io/mermaid-live-editor/

Example:

sequenceDiagram

    participant a
    participant b
    participant c

    alt path1
        a->>+b: call
        b->>-a: response
    else path2
        a->>+c: call
        c->>-a: response
    else path3
        b->>+c: call
        c->>-b: response
    end
Loading

Error:
Parse error on line 13:
...->>-a: response else path3 b
----------------------^
Expecting 'SPACE', 'NL', 'participant', 'activate', 'deactivate', 'title', 'loop', 'end', 'opt', 'alt', 'note', 'ACTOR', got 'else'

@tadeu-junior
Copy link

mermaid-js/mermaid#641

@KatekovAnton
Copy link

seems fixed to me

@shd101wyy shd101wyy transferred this issue from shd101wyy/markdown-preview-enhanced Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants