Skip to content

Tables not being rendered properly when not preceded by a newline #163

@ricardomgarciaf

Description

@ricardomgarciaf

Tables are not rendered when they directly follow a block of text without a blank line in between. While this behavior is technically aligned with the CommonMark spec, it causes compatibility issues, as many other Markdown renderers (e.g., GitHub, Markdown-it, or iOS renderers) render these cases as valid tables.

Steps to Reproduce:

Some intro text.
| Header 1 | Header 2 |
|----------|----------|
| Value 1  | Value 2  |

Expected result (as seen on web and iOS):
A table is rendered below the paragraph.

Actual result:
The table is not rendered; instead, the content is treated as plain text with pipe characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions