gomarkdown / markdown

markdown parser and HTML renderer for Go
Other
1.41k stars 173 forks source link

Fix codespan inside a table #217

Closed miekg closed 2 years ago

miekg commented 2 years ago

A codespan can contain a |. This messes up the table parsing because the delimiter there is also |. Check for a codespan in the table (header, row or footer) and simply skip to the end of it and resume scanning.

Signed-off-by: Miek Gieben miek@miek.nl

table footer

Signed-off-by: Miek Gieben miek@miek.nl

kjk commented 2 years ago

Thanks!