mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
776 stars 146 forks source link

Enhance table parsing to deal with pipes inside the cells. #7

Closed mity closed 7 years ago

mity commented 7 years ago

With MD_FLAG_TABLES enabled, we should handle pipe characters more carefully. Currently it is impossible to have (an unescaped) pipe inside the table. That makes a code span with a pipe impossible inside a table.

We can likely follow GitHub implementation as described here: https://talk.commonmark.org/t/parsing-strategy-for-tables/2027/46

mity commented 7 years ago

Done.