chore: improve state diagram example

This commit is contained in:
Michele Cereda
2024-07-17 18:28:53 +02:00
parent 7ef4a7e46a
commit 46daf977b2

View File

@@ -187,9 +187,16 @@ classDiagram
### State diagram
Refer [State diagrams].
```md
:::mermaid
stateDiagram-v2
direction LR
state "Still state with description" as Still
Moving: Moving state with description
[*] --> Still
Still --> [*]
Still --> Moving
@@ -201,6 +208,11 @@ classDiagram
```mermaid
stateDiagram-v2
direction LR
state "Still state with description" as Still
Moving: Moving state<br/>with description
[*] --> Still
Still --> [*]
Still --> Moving
@@ -304,12 +316,11 @@ gitGraph:
-->
<!-- Upstream -->
[documentation]: https://mermaid.js.org/intro/
[examples]: https://mermaid.js.org/syntax/examples.html
[live editor]: https://mermaid.live
[state diagrams]: https://mermaid.js.org/syntax/stateDiagram.html
<!-- Knowledge base -->
[markdown]: markdown.md
[mermaid-cli]: mermaid-cli.md