It is supported by the package hexo-filter-flowchart:

1
npm install --save hexo-filter-flowchart

You can configure your flowchart layout in the site's _config.yml:

1
2
3
4
5
6
7
flowchart:
options:
scale: 1
line-width: 2
line-length: 50
text-margin: 10
font-size: 12

Raw code like

1
2
3
4
5
6
7
8
9
10
11
12
s=>start: log in; counter := 0
enter_pwd=>operation: enter pwd; counter += 1
cond1=>condition: pwd correct?
cond2=>condition: counter > 3?
e1=>end: enter system
e2=>end: account suspended

s->enter_pwd->cond1
cond1(yes)->e1
cond1(no)->cond2
cond2(yes)->e2
cond2(no)->enter_pwd

in a flow code block, produces a nice flowchart as below: