A Pandoc filter for including code from source files

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

MPL-2.0 licensed and maintained by Oskar Wickström

A Pandoc filter for including code from source files. It lets you keep your examples and documentation compiled and in sync, include small snippets from larger source files, and use Markdown or LaTeX together with preformatted HTML-like sources, in Pandoc.



    • “Snippet mode” and “range mode” can no longer be used together
    • Using the numberLines class sets the startFrom attribute for correct line numbering
    • Replace bad Setup.hs script with default one
    • Fix compile error
    • Loosen constraint on pandoc-types to include 1.19.
    • Stricter checking of snippet name, fixes issue #3.
    • Loosen version constraints on dependencies. Most importantly, allow all 4.x versions of base.
    • Report errors
    • Add support for dedenting
    • Remove undocumented “formatted” feature
    • Separate library and executable
  • Before
    • 2017-04-19: Bump version
    • 2017-04-18: Only render as RawBlock when preformatted
    • 2017-02-21: Use new Pandoc 1.19
comments powered byDisqus