Skip to content

New Rule: table-column-count #389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
SwetaTanwar opened this issue May 23, 2025 · 1 comment · May be fixed by #392
Open
1 task done

New Rule: table-column-count #389

SwetaTanwar opened this issue May 23, 2025 · 1 comment · May be fixed by #392
Assignees

Comments

@SwetaTanwar
Copy link
Contributor

SwetaTanwar commented May 23, 2025

Rule details

This rule is triggered when a GitHub Flavored Markdown table does not have the same number of cells in every row

What type of rule is this?

Warns about a potential problem

Example code

Incorrect Code

| Header | Header |
| ------ | ------ |
| Cell   | Cell   |
| Cell   |
| Cell   | Cell   | Cell   |

Incorrect Code Output

Header Header
Cell Cell
Cell
Cell Cell

Correct Code:

| Header | Header |
| ------ | ------ |
| Cell   | Cell   |
| Cell   | Cell   |
| Cell   | Cell   |

Correct Code Ouput

Header Header
Cell Cell
Cell Cell
Cell Cell

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

Prior Art: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md056---table-column-count

@eslintbot eslintbot added this to Triage May 23, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage May 23, 2025
@nzakas nzakas moved this from Needs Triage to Ready to Implement in Triage May 23, 2025
@nzakas
Copy link
Member

nzakas commented May 23, 2025

Seems like a good idea to me. 👍

@SwetaTanwar SwetaTanwar linked a pull request May 24, 2025 that will close this issue
1 task
@lumirlumir lumirlumir moved this from Ready to Implement to Implementing in Triage May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Implementing
Development

Successfully merging a pull request may close this issue.

2 participants