fixup! block: parse tables
This commit is contained in:
parent
373567a6dc
commit
e56f6b2e67
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue