Sequence: Multi-line Note In Block

A multi-line note inside a block: the note is as tall as its text and the block closes below it.

sequence-multi-line-note-in-block.mmd
sequenceDiagram
  participant A
  participant B
  loop poll
    A->>B: ping
    Note left of A: first line<br/>second line<br/>third line
  end
  B->>A: pong
Output
Sequence diagram, Zombie Mermaid loop [poll] ping pong first linesecond linethird line A B

More Sequence diagram examples