Tags: table
Aliases: table-column-count
This rule checks that all rows in a GitHub Flavored Markdown table have the same number of cells.
"Extra cells in a row are usually not shown, so their data is lost. Missing cells in a row create holes in the table and suggest an omission."
| Header | Header |
| ------ | ------ |
| Cell | Cell |
| Cell |
| Cell | Cell | Cell || Header | Header |
| ------ | ------ |
| Cell | Cell |
| Cell | Cell |
| Cell | Cell |- The header row and delimiter row must have the same number of cells
- Extra cells are usually not displayed
- Missing cells create gaps in the table
This rule has no specific configuration options.
To fix this issue:
- For missing cells: Add the missing cells to make the row complete
- For extra cells: Remove the extra cells or move them to appropriate rows
- MD055 - Table pipe style: Enforces consistent pipe usage in tables