shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.41k stars 170 forks source link

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

Open vksiva opened 5 years ago

vksiva commented 5 years ago

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

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 commented 5 years ago

https://github.com/knsv/mermaid/pull/641

KatekovAnton commented 2 years ago

seems fixed to me