4 ms·
For simple graph diagrams it's easy enough to open up a separate graphviz .dot file, write up a graph specification, run it through dot or neato, and include th
by kyllo 7y ago
For simple graph diagrams it's easy enough to open up a separate graphviz .dot file, write up a graph specification, run it through dot or neato, and include the .png in your markdown file. And then automate this with a Makefile.
- ti_ranger 7y ago> For simple graph diagrams it's easy enough to open up a separate graphviz .dot file, write up a graph specification, run it through dot or neato, and include the .png in your markdown file. And then automate this with a Makefile. Or just use zim ( https://zim-wiki.org/ https://zim-wiki.org/ ) which allows you to embed graphviz diagrams in any 'page', and many other features.
- UweSchmidt 7y agoSounds interesting, would you mind sharing your workflow and your makefile? I tried graphviz ages ago and think it's a powerful and underused tool.
- gregopet 7y agoAsciiDoctor has GraphViz (and PlantUML plus a few more) available inline (it handles the conversion for you). The syntax has a few differences to Markdown but it's not too hard to adapt plus it has a few other awesome features that I always miss when in Markdown.
- UweSchmidt 7y agothanks
- kyllo 7y agoSure! I use pandoc to render Markdown, but you can use whatever Markdown processor you like in place of pandoc. Makefile all: example.html example.html: example.md example.png pandoc $< -o $@ example.png: example.dot dot -Tpng $< -o $@ example.dot digraph G { foo -> bar; } example.md # Example 
- UweSchmidt 7y agothanks a lot!