Using Pandoc's Lua AST manipulation, we can convert DOT blocks into TikZ during compile time, and then have LaTeX generate a graph rendering.
An example command that uses this filter
pandoc --pdf-engine=xelatex --lua-filter ./dot2tex.lua -o out.pdf in.md
You must have dot2text
Simply include the DOT in a dot
attributed code block
```dot
digraph graphname {
a -> b -> c;
b -> d;
}
```
And the LaTeX output will include the following picture: