Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Apr 25, 2023
1 parent d1b9e44 commit 5f5143f
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 16 deletions.
52 changes: 44 additions & 8 deletions docs/syntax/flowchart.md
Expand Up @@ -55,7 +55,45 @@ flowchart LR
id1[This is the text in the box]
```

## Graph
#### Unicode text

Use `"` to enclose the unicode text.

```mermaid-example
flowchart LR
id["This ❤ Unicode"]
```

```mermaid
flowchart LR
id["This ❤ Unicode"]
```

#### Markdown formatting

Use double quotes and backticks "\` text \`" to enclose the markdown text.

```mermaid-example
%%{init: {"flowchart": {"htmlLabels": false}} }%%
flowchart LR
markdown["`This **is** _Markdown_`"]
newLines["`Line1
Line 2
Line 3`"]
markdown --> newLines
```

```mermaid
%%{init: {"flowchart": {"htmlLabels": false}} }%%
flowchart LR
markdown["`This **is** _Markdown_`"]
newLines["`Line1
Line 2
Line 3`"]
markdown --> newLines
```

### Direction

This statement declares the direction of the Flowchart.

Expand Down Expand Up @@ -83,15 +121,13 @@ flowchart LR
Start --> Stop
```

## Flowchart Orientation

Possible FlowChart orientations are:

- TB - top to bottom
- TD - top-down/ same as top to bottom
- BT - bottom to top
- RL - right to left
- LR - left to right
- TB - Top to bottom
- TD - Top-down/ same as top to bottom
- BT - Bottom to top
- RL - Right to left
- LR - Left to right

## Node shapes

Expand Down
37 changes: 29 additions & 8 deletions packages/mermaid/src/docs/syntax/flowchart.md
Expand Up @@ -39,7 +39,30 @@ flowchart LR
id1[This is the text in the box]
```

## Graph
#### Unicode text

Use `"` to enclose the unicode text.

```mermaid-example
flowchart LR
id["This ❤ Unicode"]
```

#### Markdown formatting

Use double quotes and backticks "\` text \`" to enclose the markdown text.

```mermaid-example
%%{init: {"flowchart": {"htmlLabels": false}} }%%
flowchart LR
markdown["`This **is** _Markdown_`"]
newLines["`Line1
Line 2
Line 3`"]
markdown --> newLines
```

### Direction

This statement declares the direction of the Flowchart.

Expand All @@ -57,15 +80,13 @@ flowchart LR
Start --> Stop
```

## Flowchart Orientation

Possible FlowChart orientations are:

- TB - top to bottom
- TD - top-down/ same as top to bottom
- BT - bottom to top
- RL - right to left
- LR - left to right
- TB - Top to bottom
- TD - Top-down/ same as top to bottom
- BT - Bottom to top
- RL - Right to left
- LR - Left to right

## Node shapes

Expand Down

0 comments on commit 5f5143f

Please sign in to comment.