cmarkit icon indicating copy to clipboard operation
cmarkit copied to clipboard

CommonMark parser and renderer for OCaml

Results 9 cmarkit issues
Sort by recently updated
recently updated
newest added

``` > printf '\```ext``' | cmark `ext > printf '\```ext``' | cmarkit html ```ext`` ```

bug

Thank you for this great library. ```ocaml utop # Cmarkit.Doc.of_string ~strict:false {|\~~~strike~~|} |> print_doc;; Paragraph: Inlines: Text: '~' Strikethrough: Text: 'strike' - : unit = () utop # Cmarkit.Doc.of_string ~strict:false...

bug

I'm using cmarkit to generate and format markdown content using the `cmarkit_commonmark` module. I've noticed that it adds a lot of unnecessary escape characters which can hurt readability. ```ocaml let%expect_test...

enhancement

The diff is [here](https://spec.commonmark.org/0.31.2/changes.html). `DEVEL.md` has a [few hints](https://github.com/dbuenzli/cmarkit/blob/main/DEVEL.md#specification-update) at boilerplate changes. Also we will have to renumber the examples [here](https://github.com/dbuenzli/cmarkit/blob/ccea66560ed9ccb6089979cbff82886a6abd47a4/test/trip_spec.ml#L10-L131) because of https://github.com/commonmark/commonmark-spec/issues/763

enhancement

We still fail on two of the pathological tests on brackets. This should be fixed at some point.

bug
parser

`cmarkit html` has a BCP47 `--lang` option to specify the language of the document. It would be nice to support the same interface in `cmarkit latex` via [babel]. But a...

enhancement
tool

The HTML support for footnotes is pretty good but footnote definitions in footnotes will not render and backlinks of footnotes in footnote definitions may be missing, especially on recursive footnotes....

enhancement
html-renderer

The latex footnote support is a bit brittle. For example a verbatim environment will break. Not sure exactly what needs to be done on the LaTeX part to make that...

enhancement
latex-renderer

The current story for folding and mapping document label definitions is a bit subpar. Something better should be designed. Maybe we should integrate label definitions in the mapper/folder structure. This...

enhancement