From b5456813e855dfc6396ee234e05ebda5b21c2832 Mon Sep 17 00:00:00 2001 From: Ibrahim Wassouf Date: Sat, 29 Jul 2023 22:44:18 -0300 Subject: [PATCH] Show escaped quotes in docs using old and new method --- docs/syntax/flowchart.md | 8 +++++--- packages/mermaid/src/docs/syntax/flowchart.md | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index 97c0113bf..5a338c261 100644 --- a/docs/syntax/flowchart.md +++ b/docs/syntax/flowchart.md @@ -605,16 +605,18 @@ 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. +For quotation marks, you can escape them with a backslash as well. ```mermaid-example 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 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. diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index 2a3c003b2..b5308ad50 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -387,11 +387,12 @@ 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. +For quotation marks, you can escape them with a backslash as well. ```mermaid-example 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.