Populate render context for footnote references.
This commit is contained in:
@@ -42,7 +42,7 @@ impl<'intermediate, 'parse> Registry<'intermediate, 'parse> {
|
||||
// If it has no label then it must always get a new ID.
|
||||
self.footnote_ids
|
||||
.push((None, FootnoteDefinitionContents::FromReference(definition)));
|
||||
return self.footnote_ids.len();
|
||||
return self.footnote_ids.len() - 1;
|
||||
}
|
||||
|
||||
if let Some(existing_id) = self
|
||||
@@ -61,7 +61,7 @@ impl<'intermediate, 'parse> Registry<'intermediate, 'parse> {
|
||||
} else {
|
||||
self.footnote_ids
|
||||
.push((label, FootnoteDefinitionContents::FromReference(definition)));
|
||||
self.footnote_ids.len()
|
||||
self.footnote_ids.len() - 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user