I am trying to integrate graphviz using the dot command into pandoc markdown, and I am wondering what the easiest way is to do this. Currently I am creating separate .dot
files, create images from them using the dot
command manually on the command line into a separate file, and finally add that file using the image syntax of markdown:

But since the dot syntax is similar easy to read than markdown, I would prefer to have dot integrated in markdown. It feels like this should be possible, because in the pandoc filters page this is given as an example. It is just that I don't want to code that on my own, but would like to use some package that is ready to use. Does something like that exist?