mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-06 16:08:49 +01:00
Add rule MD056/table-column-count (fixes #92).
This commit is contained in:
parent
f694a56254
commit
30d62f19ac
26 changed files with 1748 additions and 298 deletions
141
test/table-column-count.md
Normal file
141
test/table-column-count.md
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
# Table Column Count
|
||||
|
||||
## Expected
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell |
|
||||
| Cell |
|
||||
| Cell |
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell | Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2}
|
||||
|
||||
## Blank
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| |
|
||||
| Cell |
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| | Cell | Cell |
|
||||
| Cell | | Cell |
|
||||
| Cell | Cell | |
|
||||
| | | |
|
||||
|
||||
## Too Few
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2} {MD056:-2}
|
||||
|
||||
## Too Many
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-3}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell | Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell | Cell | Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2} {MD056:-2}
|
||||
|
||||
## Mixed
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-3} {MD056:-2}
|
||||
Loading…
Add table
Add a link
Reference in a new issue