[ANN] cmarkit 0.1.0 – CommonMark parser and renderer for OCaml

Let me quote that in full:

  1. There is no plan to provide an extension mechanism at the parsing level. A lot can already be achieved by using reference resolvers, abusing code fences, post-processing the abstract syntax tree, or extending the renderers.

Regarding:

You can add a case to the extensible inline type and process Text.t nodes to recognize them.

The approach has some limitations (notably you arrive after escaping) but that’s what I used for example in the ocamlmark POC to provide a syntax for heading identifiers. See the code here.

1 Like