fixup! parse: merge enter / exit block events match branch
This commit is contained in:
parent
fee50d36fb
commit
8b8ccd65bb
1 changed files with 3 additions and 1 deletions
|
@ -523,7 +523,9 @@ impl<'s> Parser<'s> {
|
||||||
block::Node::Leaf(l) => {
|
block::Node::Leaf(l) => {
|
||||||
if matches!(l, block::Leaf::LinkDefinition) {
|
if matches!(l, block::Leaf::LinkDefinition) {
|
||||||
// ignore link definitions
|
// ignore link definitions
|
||||||
|
if enter {
|
||||||
self.tree.take_inlines().last();
|
self.tree.take_inlines().last();
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if enter {
|
if enter {
|
||||||
|
|
Loading…
Reference in a new issue