diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index 7daf7ca2b..e9feb8874 100644 --- a/docs/syntax/flowchart.md +++ b/docs/syntax/flowchart.md @@ -969,12 +969,7 @@ flowchart TD You can use the `image` shape to include an image in your flowchart. The syntax for defining an image shape is as follows: -```mermaid-example -flowchart TD - A@{ img: "https://example.com/image.png", label: "Image Label", pos: "t", w: 60, h: 60, constraint: "off" } ``` - -```mermaid flowchart TD A@{ img: "https://example.com/image.png", label: "Image Label", pos: "t", w: 60, h: 60, constraint: "off" } ``` @@ -1600,6 +1595,7 @@ flowchart LR The "Markdown Strings" feature enhances flowcharts and mind maps by offering a more versatile string type, which supports text formatting options such as bold and italics, and automatically wraps text within labels. ```mermaid-example +--- config: flowchart: htmlLabels: false @@ -1616,6 +1612,7 @@ end ``` ```mermaid +--- config: flowchart: htmlLabels: false diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index cea326b37..295093128 100644 --- a/packages/mermaid/src/docs/syntax/flowchart.md +++ b/packages/mermaid/src/docs/syntax/flowchart.md @@ -576,7 +576,7 @@ flowchart TD You can use the `image` shape to include an image in your flowchart. The syntax for defining an image shape is as follows: -```mermaid-example +``` flowchart TD A@{ img: "https://example.com/image.png", label: "Image Label", pos: "t", w: 60, h: 60, constraint: "off" } ``` @@ -980,6 +980,7 @@ flowchart LR The "Markdown Strings" feature enhances flowcharts and mind maps by offering a more versatile string type, which supports text formatting options such as bold and italics, and automatically wraps text within labels. ```mermaid-example +--- config: flowchart: htmlLabels: false