diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index 92678fb6e..97c0113bf 100644 --- a/docs/syntax/flowchart.md +++ b/docs/syntax/flowchart.md @@ -605,15 +605,16 @@ flowchart LR ### Entity codes to escape characters It is possible to escape characters using the syntax exemplified here. +For quotation marks, you can escape them with a backslash. ```mermaid-example flowchart LR - A["A double quote:#quot;"] -->B["A dec char:#9829;"] + A["A double quote:\""] -->B["A dec char:#9829;"] ``` ```mermaid 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. diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index 2e3d78c30..2a3c003b2 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -387,10 +387,11 @@ flowchart LR ### Entity codes to escape characters It is possible to escape characters using the syntax exemplified here. +For quotation marks, you can escape them with a backslash. ```mermaid-example 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.