Cmarkit is an OCaml libary for parsing the CommonMark specification. It provides:
A CommonMark parser for UTF-8 encoded documents. Link label resolution can be customized and a non-strict parsing mode can be activated to add: strikethrough, LaTeX math, footnotes, task items and tables.
An extensible abstract syntax tree for CommonMark documents with source location tracking and best-effort source layout preservation.
Abstract syntax tree mapper and folder abstractions for quick and concise tree transformations.
Extensible renderers for HTML, LaTeX and CommonMark with source layout preservation.
Cmarkit is distributed under the ISC license. It has no dependencies