From e56f6b2e67bf660bcb96275dc24aa4e1c9aa07d6 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Thu, 26 Jan 2023 22:25:50 +0100 Subject: [PATCH] fixup! block: parse tables --- src/block.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/block.rs b/src/block.rs index f1c46cd..280e715 100644 --- a/src/block.rs +++ b/src/block.rs @@ -639,9 +639,8 @@ impl BlockParser { let empty = line_t.is_empty(); match self.kind { Block::Atom(..) => false, - Block::Leaf(Paragraph | Heading) => !line.trim().is_empty(), - Block::Leaf(LinkDefinition) => line.starts_with(' ') && !line.trim().is_empty(), - Block::Container(Blockquote) => line.trim().starts_with('>'), + Block::Leaf(Paragraph | Heading) | Block::Container(Blockquote) => !empty, + Block::Leaf(LinkDefinition) => line.starts_with(' ') && !empty, Block::Container(ListItem(..)) => { let spaces = line.chars().take_while(|c| c.is_whitespace()).count(); empty