Merge pull request #6600 from kimulaco/docs/6599_fix-preview-error

docs: fix preview errors in the flowchart documentation
This commit is contained in:
Sidharth Vinod
2025-05-28 22:22:22 +05:30
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -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: 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 flowchart TD
A@{ img: "https://example.com/image.png", label: "Image Label", pos: "t", w: 60, h: 60, constraint: "off" } 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. 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 ```mermaid-example
---
config: config:
flowchart: flowchart:
htmlLabels: false htmlLabels: false
@@ -1616,6 +1612,7 @@ end
``` ```
```mermaid ```mermaid
---
config: config:
flowchart: flowchart:
htmlLabels: false htmlLabels: false

View File

@@ -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: 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 flowchart TD
A@{ img: "https://example.com/image.png", label: "Image Label", pos: "t", w: 60, h: 60, constraint: "off" } 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. 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 ```mermaid-example
---
config: config:
flowchart: flowchart:
htmlLabels: false htmlLabels: false