Sequence diagram
Parse sequenceDiagram participant / actor declarations, message arrows, notes and loop/alt blocks into participant lanes and message structures.
Inputs and parameters
input— Mermaid sequence source
Real example
sequenceDiagram
participant U as Browser
participant W as Render worker
participant E as Export plan
U->>W: Submit source & abort signal
W-->>U: Return SVG plus line / column
U->>E: Export SVG / PNG locally
Note over U,E: No external rendering service
→ sequence: 3 participants / 3 messages / 1 note; CJK aliases, & and / are escaped correctly; SVG contains participant, lifeline and message groups.
Limits and failure handling
Real Mermaid sequence auto-layout is not implemented; activate/rect/critical are recorded as blocks only. Message text is always escaped as text, never parsed as HTML.
FAQ
What happens if I omit the colon?
MISSING_MESSAGE_TEXT is returned at the end of that line and the input is preserved.
Does a Note execute HTML?
No. Note text is XML-escaped into <text> and never inserted as DOM.