Skip to content

Commit

Permalink
Update flowchart.md in response Issue mermaid-js#113
Browse files Browse the repository at this point in the history
Remove duplicate rhombus node syntax and include mermaid syntax for graph declaration without semicolons.
  • Loading branch information
vijay40 committed Jan 30, 2015
1 parent 530554a commit 1f59b1e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/flowchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@ Currently only the shape above is possible and not its mirror. *This might chang
id1{This is the text in the box}
```

```
graph LR
id1{This is the text in the box}
```
### A node (rhombus)
```
id1{This is the text in the box}
```

```
graph LR
id1{This is the text in the box}
Expand Down Expand Up @@ -289,7 +280,15 @@ If a class is named default it will be assigned to all classes without specific

* A single space is allowed between vertices and the link. However there should not be any space between a vertex and its text and a link and its text. The old syntax of graph declaration will also work and hence this new feature is optional and is introduce to improve readability.

Below is the new declaration of the graph which is also valid along with the old declaration of the graph as described in the graph example on the home wiki page.
Below is the new declaration of the graph edges which is also valid along with the old declaration of the graph edges.

```
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
```


```
graph LR
Expand Down

0 comments on commit 1f59b1e

Please sign in to comment.