cmark-hs icon indicating copy to clipboard operation
cmark-hs copied to clipboard

Update `libcmark` sources

Open neilmayhew opened this issue 4 months ago • 3 comments

The vendored sources are 0.30.3 whereas libcmark is now at 0.31.1.

However, I'd appreciate it if the recent fix for commonmark/cmark#583 was included.

neilmayhew avatar Sep 03 '25 13:09 neilmayhew

I don't actively maintain this package any more, since I switched to using my pure Haskell commonmark library in pandoc. Have you considered using that?

jgm avatar Sep 03 '25 15:09 jgm

Thank you. I wasn't aware of commonmark.

Unfortunately, the only rendering commonmark provides is HTML. Since I want to render back to commonmark text, it seems I'd either have to provide my own implementation of IsBlock and IsInline or I'd have to go via pandoc which brings in a heavy burden of dependencies. I'm definitely a fan of Pandoc, but for this use case we need something with a very small footprint.

neilmayhew avatar Sep 03 '25 18:09 neilmayhew

I've pushed a version with 0.31.1 code that you can test. (And maybe update to the latest -- I wouldn't release anything until cmark itself is released.)

jgm avatar Sep 03 '25 20:09 jgm