Mermaid is older version?

Steps to reproduce

Try to render the following, copied directly from the mermaid.js site:

    participant Alice  
    participant Bob  
    Alice->>John: Hello John, how are you?  
    loop Healthcheck  
        John->>John: Fight against hypochondria  
    Note right of John: Rational thoughts prevail!  
    John-->>Alice: Great!  
    John->>Bob: How about you?  
    Bob-->>John: Jolly good!

Expected result

I expect to see a valid mermaid diagram as per the mermaid.js site. I have also tested this on other mermaid-enabled platforms, and it works.

Actual result

Error parsing Mermaid diagram!

Parse error on line 8:
… end Note right of John: Ratio
Expecting ‘over’, ‘left_of’, ‘right_of’, got ‘ACTOR’

Additional information

It looks to me like mermaid is being invoked, and maybe it’s just a version problem. If I remove the Note, it works, but notes are valid mermaid constructs.

I had the same problem but I got it working.
Did you copy and paste the code from the mermaid web page?
For me, when I pasted it to obsidian it looked like plain texts but actually it was not.
I identify the problem by switching the note to read mode.
Try pasting the text only not with html.
Maybe you can open a notepad paste it there and copy again?
For mac, shift + cmd + alt + v

this is it, you are probably also copy non-breaking white spaces.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.