Marked version:
3.0.0 and later
Describe the bug
This may be due to GFM tables being underspecified, but the 3.0 marked upgrade broke quite a few existing tables in my markdown corpus because table delimiter rows had trailing whitespace. The output renders the text with pipes instead of HTML tables.
<p>|||
|-|-|
|cell1|cell2|</p>
Removing the whitespace resolved the issue, but this may be challenging in some upgrade scenarios.
Other table rows with trailing whitespace do not cause this issue, just the delimiter row.
To Reproduce
Note: Markdown line 2 below has a trailing space.
Dingus
Expected behavior
Trailing whitespace on tables should be ignored or at least handled consistently.
Marked version:
3.0.0 and later
Describe the bug
This may be due to GFM tables being underspecified, but the 3.0 marked upgrade broke quite a few existing tables in my markdown corpus because table delimiter rows had trailing whitespace. The output renders the text with pipes instead of HTML tables.
Removing the whitespace resolved the issue, but this may be challenging in some upgrade scenarios.
Other table rows with trailing whitespace do not cause this issue, just the delimiter row.
To Reproduce
Note: Markdown line 2 below has a trailing space.
Dingus
Expected behavior
Trailing whitespace on tables should be ignored or at least handled consistently.