Improve docs around escape characters

This commit is contained in:
zepatrik 2021-02-09 11:01:27 +01:00
parent 1f523ee843
commit dc14b2f9fe
No known key found for this signature in database
GPG Key ID: EC2C5B3670210CA0
2 changed files with 19 additions and 0 deletions

View File

@ -497,6 +497,8 @@ It is possible to escape characters using the syntax exemplified here.
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
```
Numbers given are base 10, so `#` can be encoded as `#35;`. It is also supported to use HTML character names.
## Subgraphs
```

View File

@ -347,6 +347,23 @@ sequenceDiagram
John-->>Alice: Great!
```
## Entity codes to escape characters
It is possible to escape characters using the syntax exemplified here.
```
sequenceDiagram
A->>B: I #9829; you!
B->>A: I #9829; you #infin; times more!
```
```mermaid
sequenceDiagram
A->>B: I #9829; you!
B->>A: I #9829; you #infin; times more!
```
Numbers given are base 10, so `#` can be encoded as `#35;`. It is also supported to use HTML character names.
## sequenceNumbers
It is possible to get a sequence number attached to each arrow in a sequence diagram. This can be configured when adding mermaid to the website as shown below: