Hi folks,
I wrote a utility called scirep to render a markdown file with OCaml code blocks as an HTML document, which provides some support for graphics. Here are some examples of generated documents: one based on vg, and another using owl-plplot.
It can also be used downstream of mdx as a markdown-to-html converter that detects pictures in the toplevel’s standard output and renders them in the final document.
It is really a hack, and it is poorly documented, but I’m advertising it in case it might be useful to others.