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();
|
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
|
||||||
|
|
Loading…
Reference in a new issue