inline: mv footnote label from span to event field
This commit is contained in:
parent
0a144574f4
commit
9676d9e5d6
2 changed files with 9 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue