Closed jdkato closed 3 years ago
This works as expected. CommonMark does not contain tables. As README says tables are defined in Github Flavored Markdown(GFM). GFM defines pipe characters in code span must be escaped if you want to render it in code spans. https://github.github.com/gfm/#example-200
Using
goldmark.WithExtensions(extension.GFM)
with the following Markdown snippetresults in
I think the expected result here should be
I'm using Go
go1.15.7 darwin/amd64
and Goldmarkv1.3.2
.Thanks for your work on this library.
As an aside, since this isn't a topic covered in the CommonMark spec, I've included a comparison with other libraries and there doesn't seem to be a strong consensus: e.g., MD4C (another CommonMark-compliant parser) has what I'd consider to be the "expected" output, while
cmark-gfm
(GitHub's library) doesn't.