mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Modified docs to mention escaping quotes with backslash
This commit is contained in:
parent
d8897426cd
commit
e25763d645
@ -605,15 +605,16 @@ flowchart LR
|
|||||||
### Entity codes to escape characters
|
### Entity codes to escape characters
|
||||||
|
|
||||||
It is possible to escape characters using the syntax exemplified here.
|
It is possible to escape characters using the syntax exemplified here.
|
||||||
|
For quotation marks, you can escape them with a backslash.
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
|
A["A double quote:\""] -->B["A dec char:#9829;"]
|
||||||
```
|
```
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
|
A["A double quote:\""] -->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.
|
Numbers given are base 10, so `#` can be encoded as `#35;`. It is also supported to use HTML character names.
|
||||||
|
@ -387,10 +387,11 @@ flowchart LR
|
|||||||
### Entity codes to escape characters
|
### Entity codes to escape characters
|
||||||
|
|
||||||
It is possible to escape characters using the syntax exemplified here.
|
It is possible to escape characters using the syntax exemplified here.
|
||||||
|
For quotation marks, you can escape them with a backslash.
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
|
A["A double quote:\""] -->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.
|
Numbers given are base 10, so `#` can be encoded as `#35;`. It is also supported to use HTML character names.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user