[GH-ISSUE #1953] MD056 incorrectly handles the escaped | char #787

Closed
opened 2026-03-03 01:29:52 +03:00 by kerem · 1 comment
Owner

Originally created by @evilguest on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1953

Hello, I've run into a relatively small issue that is still bothering my OCD.
Consider the following markdown:

| Component          | Type                                 | 
| ------------------ | ------------------------------------ |
| Gossip view        | `Record<peerId, GossipView \| null>` | 

The intent here is to render a TS union type within a table cell.
Both the VS Code preview renderer and the Github renderer handle this code as intended:

Component Type
Gossip view Record<peerId, GossipView | null>

The content of the `Record<peerId, GossipView | null>` is displayed within the cell as is, with no issues.
However, the markdownling reports this as a violation of MD056. Looks like it ignores the escaping and breaks the line into three columns:

  • Gossip view
  • `Record<peerId, GossipView\
  • null>`
Originally created by @evilguest on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1953 Hello, I've run into a relatively small issue that is still bothering my OCD. Consider the following markdown: ``` | Component | Type | | ------------------ | ------------------------------------ | | Gossip view | `Record<peerId, GossipView \| null>` | ``` The intent here is to render a TS union type within a table cell. Both the VS Code preview renderer and the Github renderer handle this code as intended: | Component | Type | | ------------------ | ------------------------------------ | | Gossip view | `Record<peerId, GossipView \| null>` | The content of the \`Record<peerId, GossipView \| null>\` is displayed within the cell as is, with no issues. However, the markdownling reports this as a violation of MD056. Looks like it ignores the escaping and breaks the line into three columns: - Gossip view - \`Record<peerId, GossipView\\ - null>\`
kerem closed this issue 2026-03-03 01:29:52 +03:00
Author
Owner

@evilguest commented on GitHub (Feb 11, 2026):

Hmm. Relaunched everything and can no longer reproduce it :)

<!-- gh-comment-id:3883146017 --> @evilguest commented on GitHub (Feb 11, 2026): Hmm. Relaunched everything and can no longer reproduce it :)
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#787
No description provided.