mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Merge pull request #1885 from zepatrik/improve-special-character-docs
Improve docs around escape characters
This commit is contained in:
commit
4a594ed115
@ -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;"]
|
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
|
## Subgraphs
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -347,6 +347,23 @@ sequenceDiagram
|
|||||||
John-->>Alice: Great!
|
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
|
## 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:
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user