4 ms·
Port https://github.com/commonmark/cmark https://github.com/commonmark/cmark from C to Go. Go has decent markdown parsers (I maintain one at https://github.com
by kjksf 9y ago
Port https://github.com/commonmark/cmark https://github.com/commonmark/cmark from C to Go.
Go has decent markdown parsers (I maintain one at https://github.com/gomarkdown/markdown/ https://github.com/gomarkdown/markdown/) but there is no parser that does CommonMark.
That would be a valuable addition to Go ecosystem and the project is well scoped (and there is existing test suite so you'll know if the code works or not).
- devgator 9y agoNice, thanks for the reply. I will check it out!
- kjksf 9y agoBTW: I did exactly that 6 years ago when I was learning Go: https://blog.kowalczyk.info/article/af1h/experience-porting-4k-lines-of-c-code-to-go.html https://blog.kowalczyk.info/article/af1h/experience-porting-...
- le-mark 9y agoJust curious why not call cmark from go with cgo? Would save a lot of effort porting.
- ronsor 9y agoCgo has overhead and is slower