Just curious why not call cmark from go with cgo? Would save a lot of effort porting.
Cgo has overhead and is slower
Nice, thanks for the reply. I will check it out!
BTW: I did exactly that 6 years ago when I was learning Go: https://blog.kowalczyk.info/article/af1h/experience-porting-...
Go has decent markdown parsers (I maintain one at 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).