Skip to content

Instantly share code, notes, and snippets.

@rveitch
Created October 19, 2022 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rveitch/ceb0a46904a734061e80aca393a80c40 to your computer and use it in GitHub Desktop.
Save rveitch/ceb0a46904a734061e80aca393a80c40 to your computer and use it in GitHub Desktop.
Mermaid Test

UML diagrams

You can render UML diagrams using Mermaid. For example, this will produce a sequence diagram:

sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.

Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?

And this will produce a flow chart:

graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment