Flowchart

Mr.Hope ... 2021-2-25 Markdown
  • Markdown
Less than 1 minute

Let the Markdown file support flow chart in your VuePress site

# Configuration




 




module.exports = {
  themeConfig: {
    mdEnhance: {
      flowchart: true,
    },
  },
};
1
2
3
4
5
6
7

# Syntax

# Markdown Syntax

<!-- ↓ :preset is optional -->

```flow:preset

<!-- Your flowchart code here. -->

```
1
2
3
4
5
6
7

Available presets:

  • vue (default)
  • ant

# Demo

```flow
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End|future:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|future

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Flowchart Introduction

See Flowchart Introduction (opens new window).

Last update: February 17, 2022 15:25
Contributors: Mr.Hope