fixup! block: parse tables

This commit is contained in:
Noah Hellman 2023-01-26 22:25:50 +01:00
parent 373567a6dc
commit e56f6b2e67

View file

@ -639,9 +639,8 @@ impl BlockParser {
let empty = line_t.is_empty(); let empty = line_t.is_empty();
match self.kind { match self.kind {
Block::Atom(..) => false, Block::Atom(..) => false,
Block::Leaf(Paragraph | Heading) => !line.trim().is_empty(), Block::Leaf(Paragraph | Heading) | Block::Container(Blockquote) => !empty,
Block::Leaf(LinkDefinition) => line.starts_with(' ') && !line.trim().is_empty(), Block::Leaf(LinkDefinition) => line.starts_with(' ') && !empty,
Block::Container(Blockquote) => line.trim().starts_with('>'),
Block::Container(ListItem(..)) => { Block::Container(ListItem(..)) => {
let spaces = line.chars().take_while(|c| c.is_whitespace()).count(); let spaces = line.chars().take_while(|c| c.is_whitespace()).count();
empty empty