Mermaid parser did not handle mermaid code correctly

Steps to reproduce

just paste these into editor

sequenceDiagram
participant Loop as EventLoop
participant PC as PCNode
participant VLink as VirtualLink
participant Dev as DeviceNode
Loop ->> PC: tick(now_us)
PC ->> VLink: write(CMD frame)
Loop ->> VLink: pump(now_us)
VLink ->> Dev: bytes arrive
Loop ->> Dev: tick(now_us)
Dev ->> Dev: parser.feed(bytes)
Dev ->> VLink: write(RSP/EVT/DATA)
Loop ->> VLink: pump(now_us)
VLink ->> PC: bytes arrive
Loop ->> PC: tick(now_us)
PC ->> PC: parser.feed(bytes)

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

yes

Expected result

Actual result

Error parsing Mermaid diagram!
Parse error on line 18:
… parser.feed(bytes)
----------------------^
Expecting ‘SPACE’, ‘NEWLINE’, ‘create’, ‘box’, ‘end’, ‘autonumber’, ‘activate’, ‘deactivate’, ‘title’, ‘legacy_title’, ‘acc_title’, ‘acc_descr’, ‘acc_descr_multiline_value’, ‘loop’, ‘rect’, ‘opt’, ‘alt’, ‘par’, ‘par_over’, ‘critical’, ‘break’, ‘participant’, ‘participant_actor’, ‘destroy’, ‘note’, ‘links’, ‘link’, ‘properties’, ‘details’, ‘ACTOR’, got ‘1’

Environment

SYSTEM INFO:
Obsidian version: v1.11.4
Installer version: v1.10.6
Operating system: Windows 11 Pro for Workstations 10.0.26200
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 8
Plugins enabled: 8
	1: Table Extended v1.6.1
	2: Automatic Table Of Contents v1.7.3
	3: Export To TeX v0.4.2
	4: Remotely Save v0.5.25
	5: Find Orphaned Images v1.1.3
	6: Image Converter v1.3.18
	7: Omnisearch v1.27.3
	8: AI image analyzer v0.2.0

RECOMMENDATIONS:
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

Not a heavy Mermaid user, so take it for what it’s worth, but there are similar errors here:

https://mermaid.live/edit

and with https://www.mermaidflow.app