Skip to content

Commit

Permalink
Example of spaces in stateDiagram
Browse files Browse the repository at this point in the history
This example was originally shown by https://github.com/aleneum in #1342.
  • Loading branch information
Olshansk committed Jul 31, 2022
1 parent 1ed926b commit f5c2901
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/stateDiagram.md
Expand Up @@ -249,3 +249,13 @@ stateDiagram-v2
## 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

## 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
```

0 comments on commit f5c2901

Please sign in to comment.