Mermaid-Chart / vscode-mermaid-preview

Previews Mermaid diagrams
MIT License
148 stars 16 forks source link

Incorrect render when using "activate" command #79

Closed emilekberg closed 4 years ago

emilekberg commented 5 years ago

Expected behaviour

sequenceDiagram
    participant A as A
    participant B as B
    participant C as C

    A->>B: Call
    activate B
        B->>C: Call
        activate C
        C->>B: Done
        deactivate C
    deactivate B
    B->>A: Done

Actual behaviour

image

Also if i remove the "as" it renders incorrectly

image

if i remove the activateand deactivate commands it looks correct. image

vstirbu commented 5 years ago

I'm not able to replicate the described behaviour. Here is my result when embedding the diagram in a markdown file:

Screenshot 2019-06-19 at 14 21 42

Do you get any errors in the console?

emilekberg commented 5 years ago

Could it be OS related? i'm running windows. output>extensions does not give any errorsm if this is what you meant with the console.

vstirbu commented 5 years ago

Might be. I have not tested on Windows as I do not have access to such a machine.

Have you tried to reinstall the extension? It has quite large dependencies and that might be a problem.