Bridge between commonmark and pandoc AST.

Version on this page:
LTS Haskell 22.16:
Stackage Nightly 2024-04-12:
Latest on Hackage:

See all snapshots commonmark-pandoc appears in

BSD-3-Clause licensed by John MacFarlane
Maintained by [email protected]
This version can be pinned in stack with:commonmark-pandoc-,1153

Module documentation for


hackage release

This package provides typeclass instances for parsing commonmark directly into the Pandoc AST.


Changelog for commonmark-pandoc

  • Fix addition of sourcepos attributes to blocks (jgm/pandoc#7769). We were always adding an enclosing Div, even when the block admits attributes. Now the attributes are added to the block itself, unless it can’t accept attributes (as with inlines).

  • Don’t collapse Para to Plain in task lists (#77).


  • commonmark-pandoc.cabal: remove unneeded build-depend on containers.
  • Support wikilinks extension.

  • Allow pandoc-types 1.22.

  • Add HasQuoted instance.
  • Apply attributes directly to Table element (#47).

  • Initial release