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

Module documentation for 0.3.0.1

Used by 1 package in nightly-2026-09-24(full list with versions):

commonmark-pandoc

hackage release

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

Changes

Changelog for commonmark-pandoc

0.3.0.1

  • keep task-list checkbox attached under source positions. With sourcepos enabled, an item’s first Plain/Para has already been wrapped in a Div (wrapper=“1”) by addBlockAttrs before taskList runs, so toTaskListItem’s Plain/Para patterns never matched and the checkbox was emitted as a separate Plain block preceding the item contents. Recognize the wrapper Div and insert the checkbox into the Plain/Para inside it.

  • Use B.text for resolved entities. B.str put whitespace inside Str nodes for entities like and , violating pandoc AST conventions; B.text produces proper Space/SoftBreak elements.

  • Remove redundant illegalCodePoint check.

  • Don’t duplicate classes and keys in addToPandocAttr. Matches the HTML backend’s incorporateAttribute, which never produces duplicate classes or attribute keys.

  • Make the wrapper data-pos suppression robust. Don’t rely on the wrapper marker being the first entry in the key-value list.

0.3

  • Define Applicative instances of IsBlock, IsInline etc. (Ashley Yakeley).

  • Track wikilinks with a class instead of the title (Evan Silberman). The use of title="wikilink" in HTML output likely traces back to Pandoc’s hijacking of the title attribute for this purpose back when Pandoc links didn’t have Attrs. A coordinated change in Pandoc moves this more appropriately into a class.

0.2.3

  • Track wikilinks with a class instead of the title (Evan Silberman). The use of title=“wikilink” in HTML output traces back to Pandoc’s hijacking of the title attribute for this purpose back when Pandoc links didn’t have Attrs. A coordinated change in Pandoc moves this more appropriately into a class.

0.2.2.3

  • Avoid adding spurious extra data-pos attribute to wrapper Div (#159).

0.2.2.2

  • Add wrapper=“1” when we need to add Div or Span. This is needed for good round-tripping; a djot writer can see that this attribute was added and remove the wrapping, adding the attributes directly to the element.

0.2.2.1

  • Remove nested footnotes (#138).

0.2.2

  • Add support for alerts extension (#132).

0.2.1.3

  • Allow pandoc-types 1.23.

0.2.1.2

  • 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).

0.2.1.1

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

0.2.1

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

0.2.0.1

  • Allow pandoc-types 1.22.

0.2.0.0

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

0.1.0.0

  • Initial release