Example of spaces in stateDiagram

This example was originally shown by https://github.com/aleneum in https://github.com/mermaid-js/mermaid/issues/1342.
This commit is contained in:
Daniel Olshansky
2022-07-31 14:49:43 -07:00
committed by GitHub
parent 1ed926b491
commit f5c2901b3f

View File

@@ -249,3 +249,13 @@ stateDiagram-v2
## Styling ## Styling
Styling of the a state diagram is done by defining a number of css classes. During rendering these classes are extracted from the file located at src/themes/state.scss Styling of the a state diagram is done by defining a number of css classes. During rendering these classes are extracted from the file located at src/themes/state.scss
## Spaces in state names
Spaces can be added to a state by defining it at the top and referencing the acronym later.
```mermaid-example
stateDiagram-v2
Yswsii: Your state with spaces in it
[*] --> Yswsii
```