inline: mv footnote label from span to event field

This commit is contained in:
Noah Hellman 2023-04-24 19:50:52 +02:00
parent 0a144574f4
commit 9676d9e5d6
2 changed files with 9 additions and 11 deletions

View file

@ -836,9 +836,7 @@ impl<'s> Parser<'s> {
}
}
inline::EventKind::Atom(a) => match a {
inline::Atom::FootnoteReference => {
Event::FootnoteReference(inline.span.of(self.src))
}
inline::Atom::FootnoteReference { label } => Event::FootnoteReference(label),
inline::Atom::Symbol => Event::Symbol(inline.span.of(self.src).into()),
inline::Atom::Quote { ty, left } => match (ty, left) {
(inline::QuoteType::Single, true) => Event::LeftSingleQuote,