I was looking around for a simplistic markdown parser (mostly out of curiosity about code length in various languages—I was surprised at how long the #rust versions are).

But all the top search results convert Markdown to HTML with a regex. And that's cool. I *like* regex.

… but that's not parsing! That's text transformation, which is sometimes all you need. But don't call it a parser. Sigh

@codesections
what about #cmark, the "C reference of #CommonMark, a rationalized version of #Markdown syntax with a spec"? https://github.com/commonmark/cmark/blob/master/README.md
commonmark/cmark

CommonMark parsing and rendering library and program in C - commonmark/cmark

@codesections

so, i just want to plug this in case anyone hasn't seen it yet:

https://pest.rs/

Great library that lets you specify formats in a DSL, and generates rust code for a parser from that. they've got an editor on their website, it's super easy.

pest. The Elegant Parser