Switch to goldmark
It’s actually maintained and possibly has better results. Michael told me IRL this would be a thing to do, I’m just opening this issue to keep track of it (and let potential contributors know about it so they can claim that task).
This should be "relatively" easy as gomarkdown and goldmark share a very similar API. So the goal is to swap the parser/AST to use the goldmark one which would bring compliance with CommonMark and indeed GFM. From a quick look, the API is also less awkward here and there so that's also a win.
Most of the rendering code should stay very similar, with just a glue change everywhere.
A few pointers:
- https://github.com/yuin/goldmark, the markdown HTML renderer
- https://godoc.org/github.com/yuin/goldmark/ast, the reusable parser/AST
- https://godoc.org/github.com/yuin/goldmark/extension/ast extension to the AST, notably tables
This should be "relatively" easy
The one who wrote that is an idiot. It is not easy.
Most of the switch is done in https://github.com/MichaelMure/go-term-markdown/pull/20
At least 2 outstanding part to fix: links and images
Links and images are done, build is green. It's getting close!
is this still being worked on?