benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.48k stars 2.7k forks source link

[BUG] SequenceDiagram is NOT rendered when using Mermaid's "actor symbol" #1796

Open alcnaka opened 1 year ago

alcnaka commented 1 year ago

Mermaid's sequenceDiagram is not rendered when mermaid codeblock includes actor symbol. It displays plane text codeblock instead of Mermaid Diagram.

View on stackedit.io

スクリーンショット 2022-07-06 18 02 12

Sample code

The test code was quoted from mermaid.js official documentation.

Mermaid.js Document (SequenceDiagram > Actors)

Original Code

sequenceDiagram
 actor  Alice
 actor  Bob
 Alice->>Bob: Hi Bob
 Bob->>Alice: Hi Alice

Replace actor with participant

sequenceDiagram
 participant  Alice
 participant  Bob
 Alice->>Bob: Hi Bob
 Bob->>Alice: Hi Alice
askrht commented 1 year ago

+1