fix(markdown): parse a table that follows a text line without a blank line (#1749)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-19 14:24:33 +02:00
1 parent 4a16921242
commit a297f89b83
3 files changed
+51

No files matched your search

@@ -159,6 +159,11 @@ impl RuntimeState<'_> {
let next_line = &self.lines[self.current_line + consumed].text;
let trimmed_next = trim_start(next_line);
if crate::block::is_block_start(trimmed_next, self.parser.flags())
|| crate::block::is_table_start(
&self.lines,
self.current_line + consumed,
self.parser.flags(),
)
|| trimmed_next.is_empty()
{
break;