fixup! b1072d5d646f05f9b180d7cb1cd86ae805ed1f6d
This commit is contained in:
parent
21099a301f
commit
15a94f0161
2 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ mod test {
|
|||
(Exit(Leaf(Heading { level: 1 })), "#"),
|
||||
(Element(Blankline), "\n"),
|
||||
(Enter(Leaf(Heading { level: 1 })), "#"),
|
||||
(Element(Inline), " 8\n"),
|
||||
(Element(Inline), "8\n"),
|
||||
(Element(Inline), " 12\n"),
|
||||
(Element(Inline), "15"),
|
||||
(Exit(Leaf(Heading { level: 1 })), "#"),
|
||||
|
|
|
@ -361,7 +361,7 @@ impl<'s> Iterator for Parser<'s> {
|
|||
Event::Atom(Atom::Blankline)
|
||||
}
|
||||
tree::EventKind::Enter(block) => {
|
||||
if matches!(block, block::Block::Leaf(..)) {
|
||||
if matches!(block, block::Block::Leaf(l)) {
|
||||
self.parser = Some(inline::Parser::new());
|
||||
}
|
||||
Event::Start(Container::from_block(self.src, block), Attributes::none())
|
||||
|
|
Loading…
Reference in a new issue