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