Repository navigation
🐛 fix(markdown): encode cell carriage returns - #1652
Conversation
Raw HTML nested inside a pipe-table cell could carry a carriage return. Markdown readers treated it as a row break and changed the table on re-read. Use a numeric reference for CR while keeping cell LF collapse unchanged.
Merging this PR will improve performance by 25.33%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Raw HTML nested in a Markdown pipe-table cell could contain a carriage return. The Markdown reader treated it as a row break, so the table changed on re-read.
The cell HTML writer now encodes CR as a numeric reference and keeps the existing LF collapse. Synthetic nested table and list cases cover the failure, and the original fuzz artifact now passes.