fixup! parse: merge enter / exit block events match branch

This commit is contained in:
Noah Hellman 2023-01-28 11:05:16 +01:00
parent fee50d36fb
commit 8b8ccd65bb

View file

@ -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
self.tree.take_inlines().last(); if enter {
self.tree.take_inlines().last();
}
continue; continue;
} }
if enter { if enter {