Formats marked code fragments, and allows pandoc to safely process rest of your literate program:
Usage:
> stack install pandoc-filter-indent
> pandoc --filter pandoc-filter-indent -f input.md -o output.pdf
> pandoc --filter pandoc-filter-indent -f input.md -o output.html
Using lhs2TeX is somewhat inconvenient on large Markdown documents
processed with pandoc, since it assumes that it can freely redefine everything.
It is also pretty heavy on learning.
So instead we have a simple Pandoc filter that is only applied to CodeFragments
and creates tabular code structures from indentation.
It uses GHC lexer to assure that latest features are always parsed correctly.
Please see the README on GitHub at https://github.com/mjgajda/pandoc-filter-indent#readme