Create a render ast node type.

This commit is contained in:
Tom Alexander
2023-10-29 15:36:15 -04:00
parent 645ae26701
commit b66ec507ef
74 changed files with 566 additions and 80 deletions

View File

@@ -31,6 +31,13 @@ impl<'parse> Registry<'parse> {
})
}
pub(crate) fn get_footnote_ids(&self) -> impl Iterator<Item = (usize, &Vec<IAstNode>)> {
self.footnote_ids
.iter()
.map(|(_label, definition)| definition)
.enumerate()
}
/// Get a 0-indexed ID for a footnote.
///
/// This needs to be incremented to be 1-indexed for render.