diff --git a/docs/syntax/flowchart.md b/docs/syntax/flowchart.md index fdd74309a..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" } ``` diff --git a/packages/mermaid/src/docs/syntax/flowchart.md b/packages/mermaid/src/docs/syntax/flowchart.md index c643a298a..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" } ```