Filter for use with Pandoc to turn code blocks with Pikchr markup into inline images in the output file.

$ pandoc --self-contained \
         --lua-filter pikchr.lua \
         -f markdown \
         -t html \
         README.md \
         -o readme.html
Markdown + Pikchr pandoc output with diagrams fossil pikchr
arrow right 200% "Markdown +" "Pikchr"
box rad 10px "pandoc" bold fit
arrow right 200% "output" "with diagrams"
arrow <-> down 70% from last box.s
box same "fossil pikchr" bold fit

🎑