[GH-ISSUE #323] Whitespace around vertical bar (pipe) characters in tables #277

Closed
opened 2026-03-03 01:25:21 +03:00 by kerem · 0 comments
Owner

Originally created by @waldyrious on GitHub (Aug 26, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/323

This is similar in spirit to #90 (i.e. to improve the readability of tables), but simpler. The rule would simply check that pipe characters (|) in tables are padded by whitespace, except at the start and end of lines.

Specifically, a table like this would fail:

|foo|bar|
|-----|-----|
|lorem|ipsum|

whereas this would be accepted:

| foo | bar |
| --- | --- |
| lorem | ipsum |

Notice that alignment of the columns is not checked.

Originally created by @waldyrious on GitHub (Aug 26, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/323 This is similar in spirit to #90 (i.e. to improve the readability of tables), but simpler. The rule would simply check that pipe characters (`|`) in tables are padded by whitespace, except at the start and end of lines. Specifically, a table like this would fail: ``` |foo|bar| |-----|-----| |lorem|ipsum| ``` whereas this would be accepted: ``` | foo | bar | | --- | --- | | lorem | ipsum | ``` Notice that alignment of the columns is not checked.
kerem 2026-03-03 01:25:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#277
No description provided.