Use Vis.js to render GraphViz dot format graphs.
-
Install
npm install https://github.com/rjyblog/hexo-tag-viz.git
-
Code block with
viz
ordot
notation will be rendered by Vis.js.``` vizor
digraph {
A -> {B; C; D}
}
```{% viz %}
digraph {
A -> {B; C; D}
}
{% endviz %}You can choose different engines by specifying
engine=xxx
. Enginecirco
,dot
,neato
,osage
, ortwopi
are supported. Default engine isdot
.``` viz engine=neato
digraph {
A -> {B; C; D}
}
```