4 ms·
You know there's a CommonMark reference implementation in C, right? https://github.com/jgm/cmark https://github.com/jgm/cmark I haven't tried it, but I would
by thristian 11y ago
You know there's a CommonMark reference implementation in C, right?
https://github.com/jgm/cmark https://github.com/jgm/cmark
I haven't tried it, but I would expect it would be easier to link with Rust than an entire other language VM.
- barosl 11y agoOh, yes. I had also tried that, but found some convenient features missing, e.g. line breaks treated as `<br>` (not two consecutive blank lines), GitHub-flavored tables, and the strikethrough syntax. I'll have to wait until the official CommonMark spec includes them. Also the third-party CommonMark libraries are usually easier to extend, with your own syntax addition.