Support tables with "rowspan" or "colpsan" attributes #62
Labels
🗄 area/interface
This affects the public interface
💪 phase/solved
Post is done
🧒 semver/minor
This is backwards-compatible change
🦋 type/enhancement
This is great to have
Initial checklist
Subject
Which, when rendered, should look somehow like that:
![image](https://user-images.githubusercontent.com/4318513/118491863-b4325a00-b71f-11eb-80a5-e771a125f2d2.png)
Problem
When converting to MDAST, the missing cells are added automatically, so the following tree is constructed (notice empty tableCell added to third row's end):
![image](https://user-images.githubusercontent.com/4318513/118491338-30786d80-b71f-11eb-9ca1-393c44fc9443.png)
So, if serialize to Markdown, it would look like:
Notice the "test" in third column is shifted to the left
Solution
The converter may take "rowspan", "colspan" attributes into account and put empty cells into the corresponding positions, to preserve table structure in general
Alternatives
I don't see any alternative implementation. Related to #54.
The text was updated successfully, but these errors were encountered: