Register footnote definitions.

This commit is contained in:
Tom Alexander
2023-10-29 12:31:48 -04:00
parent cb7c28c1ae
commit 795945f0da
2 changed files with 33 additions and 5 deletions

View File

@@ -8,8 +8,9 @@ pub(crate) struct IFootnoteDefinition {}
impl IFootnoteDefinition {
pub(crate) async fn new<'intermediate, 'parse>(
registry: &mut Registry<'intermediate, 'parse>,
original: &organic::types::FootnoteDefinition<'parse>,
original: &'intermediate organic::types::FootnoteDefinition<'parse>,
) -> Result<IFootnoteDefinition, CustomError> {
registry.register_footnote_definition(original.label, &original.children);
Ok(IFootnoteDefinition {})
}
}