@Karl We have two independently written roc markdown processors. Even the same name. We both used Claude to write them. See #contributing > markdown
I don't think there is an actual problem here, but folks may be confused.
I did post about it when I first released it back in August. Do you want me to rename it or something? I use the block level API directly in my GUI apps for doing rich text so I'm kind of committed to the API.
Karl said:
I did post about it when I first released it back in August. Do you want me to rename it or something?
No, I'm definitely not asking you to change anything here. Your Roc version pre-dates mine, although my Roc version is actually a port of my Zig version that dates back to May or something. So even if I had seen yours in August, I would have worked off of my own Zig version (which was battle-tested for my chat dialect). I think it's an amusing testament to the power of Roc plus agents. :smile:
I'm having Claude compare the two versions. I'll notify you of any interesting findings. The intentional differences are that I support my own dialect of markdown for my chat as the main option (but like you, I claim to comply to the standard and be fast).
4 messages were moved here from #show and tell > community showcase in 0.1.0 blog post by Steve Howell.
Just posting the two repos here for convenience:
Claude speaks highly of both implementations, although Claude is biased (helped author both). Karl Are you intending to support the library if people use it? I am kind of neutral on it for my version. I consider my version basically "done" and easy for folks to fork. I can steer folks who don't want to use chat toward yours if you'd like.
roc-parser does markdown too :sweat_smile:
Luke Boswell said:
roc-parser does markdown too :sweat_smile:
I can do a side-by-side comparison of that if you'd like. For whatever reason, when I was porting my zig version to roc, I had Claude look for other repos, and it found yours. I vaguely remember something about yours being only a parser and not an emitter? I could be completely wrong.
Same question for you--do you want me to point people toward yours? Or do we predict that most people will roll their own anyway and just carry on with life?
Roc's natural name-spacing by author comes to the rescue! :D
Don't you have one as well @Niclas Ahden ?
I dont need a comparison or anything. Just thought Id mention it. My implementation isnt as fast as I'd like yet.
@Karl I had one long ago, not sure I posted it publicly? Now I have a fork of yours that I'm using. It's great! Why maintain more packages than necessary :D
This is my recommendation for Richard Feldman to possibly write in the blog:
Roc has three independently written roc markdown processors that are probably sufficient for most people's needs:
All three are currently used in production.
As an aside, I have been working on porting my zig-based chat program to be mostly Roc. Some of the distinctive pieces of my implementation will shine in the chat context: it escapes raw HTML, filters dangerous URLs, and bounds each message's work so a host can refuse an expensive one.
For trusted markdown source, some of those features are overkill.
@Luke Boswell By the way, roc-parser was one of the first "real" pieces of Roc code that I read. I've hand written quite a few parsers in my day, and I know that you don't get elegance for free. When I saw yours, I was like, yeah, Roc is nice! The parser code is so easy on the eyes.
I keep my markdown playground live here: https://roc.lynrummy.com/markdown/
Because Roc is awesome, the translator all runs on the client.
Steve Howell said:
As an aside, I have been working on porting my zig-based chat program to be mostly Roc.
Last updated: Nov 26 2026 at 20:35 UTC