compose-richtext icon indicating copy to clipboard operation
compose-richtext copied to clipboard

Tables not being rendered properly when not preceded by a newline

Open ricardomgarciaf opened this issue 8 months ago • 1 comments

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.

ricardomgarciaf avatar May 09 '25 17:05 ricardomgarciaf

If it's an issue with the commonmark parser, I don't think there is much we can do here.

I have in my plans to create a separate artifact that uses Jetbrains' markdown parser but haven't got a chance to start working on it.

halilozercan avatar May 09 '25 22:05 halilozercan