A plugin for BlogLiterately (http://hackage.haskell.org/package/BlogLiterately) which turns inline diagrams
code into images.
This library also provides an executable,
BlogLiteratelyD, providing a standard instance
of BlogLiterately extended with support for
inline diagrams code. For most users it
should suffice to simply use BlogLiteratelyD in
place of BlogLiterately.
To use it, include code blocks with the dia or
dia-def class (using pandoc's special extended
Markdown syntax
(http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html),
or BlogLiterately's extended syntax for tagged
code blocks
(http://byorgey.wordpress.com/blogliterately/)),
like so:
Note that attributes like width and height can
also be specified, but be sure to put the numbers
in quotes or else they will not parse properly.
Running this through BlogLiteratelyD (after
replacing square brackets with curly braces)
should result in HTML that looks something like
this: