sequenceDigram - Error parsing Mermaid diagram

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  • I put this block between ````

mermaid
sequenceDiagram
actor Alice
actor John
Alice->>John: Hello John, how are you?
John–>>Alice: Great!
Alice-)John: See you later!

  • And I switch to editing mode

Did you follow the troubleshooting guide? [Y/N]

Yes, I can reproduce the bug in the sandbox vault after updating Obsidian and all my plugins

Expected result

Display of a diagram sequence

Actual result

Error parsing Mermaid diagram!

Parse error on line 9:
...See you later!```
--------------------^
Expecting 'SOLID_OPEN_ARROW', 'DOTTED_OPEN_ARROW', 'SOLID_ARROW', 'DOTTED_ARROW', 'SOLID_CROSS', 'DOTTED_CROSS', 'SOLID_POINT', 'DOTTED_POINT', got 'NEWLINE'

Environment

SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.5.3
Operating system: Windows 10 Enterprise 10.0.22621
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Everforest v0.0.0
Snippets enabled: 0
Restricted mode: off
Plugins installed: 10
Plugins enabled: 9
1: Mind Map v1.1.0
2: Title Serial Number Plugin v0.0.2
3: Webpage HTML Export v1.7.3
4: Mermaid Tools v1.1.1
5: LanguageTool Integration v0.3.6
6: Excalidraw v2.0.13
7: Dictionary v2.22.0
8: Quiet Outline v0.3.19
9: Editor Width Slider v1.0.5

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.


Additional information

I can create Mermaid diagrams of others diagrams types like graph TP

moved to help

I get a similar error when Copy-Pasting the code provided. But when removing, and re-typing ->> fixed it for me.

sequenceDiagram  
actor Alice  
actor John  
Alice->>John: Hello John, how are you?  
John->>Alice: Great!  
Alice-)John: See you later!

Result:

1 Like

@Remnight, Whaaaou :astonished: :astonished:, you are absolutely right. When I rewrite by hand, the diagram appears correctly.
There’s probably a special character inadvertently inserted in the copy and paste.
@WhiteNoise :see_no_evil: oups, this is not a bug.
Thanks for both for your help

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