mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #39] [MERGED] Bugfix/cell after colspan #776
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?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/39
Author: @christophano
Created: 7/16/2016
Status: ✅ Merged
Merged: 7/19/2016
Merged by: @xoofx
Base:
master← Head:bugfix/cell-after-colspan📝 Commits (3)
ba8557dCorrects spec for TestExtensionsGridTable Example0036d8f899Fixes cell contents not displaying after colspan merged cell264516bUpdated tests via md file and regenerated from t4📊 Changes
5 files changed (+27 additions, -18 deletions)
View changed files
📝
src/Markdig.Tests/Specs/GridTableSpecs.md(+5 -5)📝
src/Markdig.Tests/Specs/Specs.cs(+6 -6)📝
src/Markdig/Extensions/Tables/GridTableParser.cs(+7 -4)📝
src/Markdig/Extensions/Tables/HtmlTableRenderer.cs(+3 -3)📝
src/Markdig/Extensions/Tables/TableCell.cs(+6 -0)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.