Usage
1
2
3
4
Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
1
2
3
4
5
6
```sequence
Andrew ->China : Says Hello
Note right of China : China thinks\nabout it
China
Andrew ->>China : I am good thanks!
```
Configuration
Configure for all home and regular pages:
1
2
3
[params.sequenceDiagrams]
enable = true
options = "{theme: 'hand'}"
Configure for a single post in the front matter (Params in front matter have higher precedence ):
1
2
3
sequenceDiagrams:
enable: true
options: "{theme: 'hand'}"
Options
1
2
3
4
5
6
7
options = {
theme: string,
css_class: string,
}
See more information from https://github.com/bramp/js-sequence-diagrams .
Examples
1
2
3
4
5
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
1
2
3
4
5
6
7
```sequence
Title: Here is a title
A-> B: Normal line
B--> C: Dashed line
C-> >D: Open arrow
D--> >A: Dashed open arrow
```
1
2
3
4
5
# Example of a comment.
Note left of A: Note to the\n left of A
Note right of A: Note to the\n right of A
Note over A: Note over A
Note over A,B: Note over both A and B
1
2
3
4
5
6
7
```sequence
# Example of a comment.
Note left of A: Note to the\n left of A
Note right of A: Note to the\n right of A
Note over A: Note over A
Note over A,B: Note over both A and B
```