mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[Pipe Tables Extension] Rendering tables when delimiter row is invalid #388
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hamvocke on GitHub (Jul 31, 2020).
I found another aspect where the pipe tables extension is doing things differently than what GitHub-flavored Markdown suggests. While we're at it, maybe we can get another tweak in for a more GFM-compliant way of processing? 🙂
This is the example I'm talking about:
In other words, a table like this should not be recognized as a table because the delimiter row doesn't match the number of header cells.
Markdig would still render the structure given above as a table with two columns.
With the new
gfm-pipetablesmode in place I managed to get a failing test to reproduce the issue but I'm unsure where to get the fix in. In my mind, the check would go somewhat like this:There might be another way to do this that's more in line with the current architecture, though. I'm happy to work on a fix for this issue but would appreciate some ideas to get started.
@xoofx commented on GitHub (Jul 31, 2020):
Gonna be on holidays for the upcoming 3 weeks, so don't worry If I'm not super responding or not able to merge PR quickly 😉