package cmarkit

  1. Overview
  2. Docs
CommonMark parser and renderer for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cmarkit-0.4.0.tbz
sha512=4f0be18c1a16265710d20b85e48b3f8d8632dd708f413264f2a3b7653a860fd80440b81dc40f5ec63d63411705ae389bb07bdb74365e277bec24895b44ba8a0a

doc/CHANGES.html

v0.4.0 2025-11-01 Zagreb

  • Support for the CommonMark 0.31.2 specification (#17).
  • Change task items extension semantics: the task marker is no longer considered part of the list marker. The new semantics can lead to surprises with item subparagraphs which can show up as indented code blocks, but it avoids huge indentations for subtasks and is consistent with what at least GFM and md4c do. Thanks to Thomas Gazagnaire for the report (#24).
  • Cmarkit_latex. Add option ?first_heading_level to the renderer to set the LaTeX heading level to use for the first CommonMark heading level. A corresponding option --first-heading-level is added to cmarkit latex. Thanks to Léo Andrès for the patch (#16).
  • cmarkit html command: add option --body-id to identify page body elements.
  • cmarkit tool: install manpages and completions.
  • Less eager escaping of # characters in CommonMark renderings. Thanks to Thomas Gazagnaire for the report (#25).
  • Less eager escaping of . and ) characters in CommonMark rendering. Thanks to Ty Overby for the report (#19).
  • Fix incorrect parsing of code spans if they start with an escaped backtick (#21).
  • Fix incorrect escaping of backticks in CommonMark renderings (#26).
  • Fix incorrect escaping of tildes for CommonMark rendering interpreted with extensions (strikethrough becomes code fence). Thanks to Tianyi Song for the report (#20).
  • Fix Cmarkit.Mapper. Do not drop empty table cells. Thanks to Hannes Mehnert for the report (#14).
  • Fix out of bounds exception when lists are terminated by the end of file. Thanks to Ty Overby for the report (#18).
  • Fix invalid HTML markup generated for cancelled task items. Thanks to Sebastien Mondet for the report (#15).
  • Fix misspelling of --leading_l variable in cmarkit html's CSS file.
  • Updated data for Unicode 17.0.0.
  • Require (depopt) cmdliner 2.0.0.

v0.3.0 2023-12-12 La Forclaz (VS)

  • Fix ordered item marker escaping. Thanks to Rafał Gwoździński for the report (#11).
  • Data updated for Unicode 15.1.0 (no changes except for the value of Cmarkit.Doc.unicode_version).
  • Fix table extension column parsing, toplevel text inlines were being dropped. Thanks to Javier Chávarri for the report (#10).
  • List_item.make, change default value of after_marker from 0 to 1. We don't want to generate invalid CommonMark by default. Thanks to Rafał Gwoździński for the report (#9).
  • Add option -f/--full-featured, to cmarkit html. A synonym for a bunch of existing options to generate a publishable document with extensions and math rendering without hassle. See cmarkit html --help for details.

v0.2.0 2023-05-10 La Forclaz (VS)

  • Fix bug in Block_lines.list_of_string. Thanks to Rafał Gwoździński for the report and the fix (#7, #8).
  • Cmarkit.Mapper. Fix non-sensical default map for Image nodes: do not delete Image nodes whose alt text maps to None, replace the alt text by Inline.empty. Thanks to Nicolás Ojeda Bär for the report and the fix (#6).

v0.1.0 2023-04-06 La Forclaz (VS)

First release.

Supported by a grant from the OCaml Software Foundation.