Skip to content

Rule Change: Extend table-column-count to flag rows with fewer cells than header #422

Open
@TKDev7

Description

@TKDev7

What rule do you want to change?

table-column-count

What change do you want to make?

Generate more warnings

How do you think the change should be implemented?

A new option

Example code

| Header | Header | Header |
| ------ | ------ | ------ |
| Cell   | Cell   |        |  <!-- Currently VALID: fewer cells than header -->

What does the rule currently do for this code?

The row with fewer cells is considered valid.

What will the rule do after it's changed?

The rule will flag rows with fewer cells than the header.

Participation

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

Additional comments

This change mirrors Markdownlint's MD056 rule behavior, which flags both excess and missing cells. As for the option's name, I suggest checkMissingCells.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Implementing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions