D2 is a modern language that turns text to diagrams.
Installation
1 | npm install hexo-tag-d2 |
Usage
Inline diagram
1 | {% d2 %} |
From file
1 | {% d2_file diagram.d2 %} |
Using this tag will not update the diagram when editing the
d2
file. You should also re-save the markdown file or restart the server.