Inline ditaa, dot or plantuml sources in hugo posts

In Jekyll, the above ditaa tag will trigger a plugin that will execute a command line executable with optional args, save the generate svg to a file and link the image file to the post. The jekyll build will also copy the generated svg file to the _site output folder.

The above example is specific to the ditaa plugin, but it seems that there could be a single exec tag to rule them all.