mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-12 05:44:48 +00:00
[PR #39] Bugfix/cell after colspan #781
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?
Original Pull Request: https://github.com/xoofx/markdig/pull/39
State: closed
Merged: Yes
Example 003 for Grid Tables has a small error in the expected output.
Input:
Should produce:
Col1a
Col2a
Col3a
But the spec expects (and currently passes):
Col1a
Col2a
Col3a
This hides a small bug when cells follow cells with with a colspan.
I've adjusted the way column span is calculated to correct this.
I've also added a property to
TableCellcalledColumnIndexwhich records which column a cell belongs to, to make sure alignment is correctly inherited. This property is not used for pipe tables.