@@ -326,6 +326,32 @@ $ mermaid-ascii -f sequence.mermaid
326326 │◄┈┈┈┈┈┈┈┈┈┈┈┤
327327 │ │
328328
329+ # Loop and opt blocks are drawn as labelled frames (and can be nested)
330+ $ cat sequence.mermaid
331+ sequenceDiagram
332+ Alice->> Bob: Hello
333+ loop every minute
334+ Alice->> Bob: Ping
335+ Bob-->> Alice: Pong
336+ end
337+ $ mermaid-ascii -f sequence.mermaid
338+ ┌───────┐ ┌─────┐
339+ │ Alice │ │ Bob │
340+ └───┬───┘ └──┬──┘
341+ │ │
342+ │ Hello │
343+ ├───────────►│
344+ ┌─[loop every minute]─┐
345+ │ │ │ │
346+ │ │ Ping │ │
347+ │ ├───────────►│ │
348+ │ │ │ │
349+ │ │ Pong │ │
350+ │ │◄┈┈┈┈┈┈┈┈┈┈┈┤ │
351+ │ │ │ │
352+ └─────────────────────┘
353+ │ │
354+
329355# ASCII mode for sequence diagrams
330356$ cat sequence.mermaid | mermaid-ascii --ascii
331357+-------+ +-----+
@@ -525,9 +551,11 @@ Note that with `--coords` enabled, the grid-coords shown show the starting locat
525551- [x] Participant aliases (` participant A as Alice ` )
526552- [x] Unicode support (emojis, CJK characters, etc.)
527553- [x] Both ASCII and Unicode rendering modes
554+ - [x] ` loop ` and ` opt ` blocks (incl. nesting)
555+ - [x] ` autonumber `
528556- [ ] Activation boxes
529557- [ ] Notes (` Note left of Alice: text ` )
530- - [ ] Loops, alt, opt blocks
558+ - [ ] ` alt ` / ` else ` , ` par ` , ` critical ` , ` break ` , ` rect ` blocks
531559
532560## TODOs
533561
@@ -555,7 +583,8 @@ The baseline components for Mermaid work, but there are a lot of things that are
555583
556584- [ ] Activation boxes (activate/deactivate)
557585- [ ] Notes (` Note left of Alice: text ` )
558- - [ ] Loops, alt, opt, and par blocks
586+ - [x] ` loop ` and ` opt ` blocks
587+ - [ ] ` alt ` , ` par ` , ` critical ` , ` break ` , and ` rect ` blocks
559588
560589### General
561590
0 commit comments