|Maintainer||Brent Yorgey <email@example.com>|
Custom transformation passes for the
allowing inclusion of inline code using the
(http://projects.haskell.org/diagrams) which are compiled into
images. See Text.BlogLiterately.Run for more information.
Note that this package provides an executable,
which compiles embedded diagrams code as well as all the standard
transforms provided by BlogLiterately.
Transform a blog post by looking for code blocks with class
dia, and replacing them with images generated by evaluating the
dia and rendering the resulting diagram. In
addition, blocks with class
dia-def are collected (and deleted
from the output) and provided as additional definitions that will
be in scope during evaluation of all
main = blogLiteratelyCustom (diagramsXF : standardTransforms)
It also works well in conjunction with
centerImagesXF (which, of course,
should be placed after
diagramsXF in the pipeline). This
package provides an executable
Transform a blog post by looking for inline code snippets with
dia, and replacing them with images generated by
evaluating the contents of each code snippet as a Haskell
expression representing a diagram. Any code blocks with class
dia-def will be in scope for the evaluation of these
expressions (such code blocks are unaffected).
diagramsInlineXF both use blocks with
diagramsInlineXF leaves them alone whereas
diagramsXF deletes them,
diagramsInlineXF must be placed
diagramsXF in the pipeline.