[PR #885] Add support for a table without an extra new line before it #1281

Open
opened 2026-01-29 14:52:32 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/885

State: closed
Merged: Yes


Fixes the following issue where a table will not be rendered if there isn't an extra line before the table.
https://github.com/xoofx/markdig/issues/818

For example this will not render correctly

Here is the table:
| Key   | Value    |
| ----  | -------- |
| Color | Blue     |
| Size  | Medium   |

But this will because there's an extra new line before the table starts

Here is the table:

| Key   | Value    |
| ----  | -------- |
| Color | Blue     |
| Size  | Medium   |

Not handled in this change - whitespace between the new line and the pipe

**Original Pull Request:** https://github.com/xoofx/markdig/pull/885 **State:** closed **Merged:** Yes --- Fixes the following issue where a table will not be rendered if there isn't an extra line before the table. https://github.com/xoofx/markdig/issues/818 For example this will not render correctly ``` Here is the table: | Key | Value | | ---- | -------- | | Color | Blue | | Size | Medium | ``` But this will because there's an extra new line before the table starts ``` Here is the table: | Key | Value | | ---- | -------- | | Color | Blue | | Size | Medium | ``` Not handled in this change - whitespace between the new line and the pipe
claunia added the pull-request label 2026-01-29 14:52:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1281