Skip to content

Markdown: don't require preceding newline - #313

Merged
platypii merged 1 commit into
masterfrom
fix-table-newline
Sep 14, 2025
Merged

platypii merged 1 commit into
masterfrom
fix-table-newline

Conversation

@platypii

Copy link
Copy Markdown
Contributor

Saw an LLM output that had:

Oldest houses:
| id | year |
|---|---|
| 83 | 1920 |
| 19 | 1951 |

But failed to render as a table since there wasn't a newline between the preceding paragraph and the table. Github markdown allows it. This PR fixes by breaking out of the paragraph loop if a table is detected.

@platypii
platypii merged commit 289ec8d into master Sep 14, 2025
8 checks passed
@platypii
platypii deleted the fix-table-newline branch September 14, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant