mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Show escaped quotes in docs using old and new method
This commit is contained in:
parent
ed4feaebf2
commit
b5456813e8
@ -605,16 +605,18 @@ 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.
|
For quotation marks, you can escape them with a backslash as well.
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:\""] -->B["A dec char:#9829;"]
|
A["A double quote:#quot;"] --> B["A dec char:#9829;"]
|
||||||
|
B --> C["This is a \"square\" vertex"]
|
||||||
```
|
```
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:\""] -->B["A dec char:#9829;"]
|
A["A double quote:#quot;"] --> B["A dec char:#9829;"]
|
||||||
|
B --> C["This is a \"square\" vertex"]
|
||||||
```
|
```
|
||||||
|
|
||||||
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,11 +387,12 @@ 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.
|
For quotation marks, you can escape them with a backslash as well.
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
flowchart LR
|
flowchart LR
|
||||||
A["A double quote:\""] -->B["A dec char:#9829;"]
|
A["A double quote:#quot;"] --> B["A dec char:#9829;"]
|
||||||
|
B --> C["This is a \"square\" vertex"]
|
||||||
```
|
```
|
||||||
|
|
||||||
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