Render the footnote definitions.

This commit is contained in:
Tom Alexander
2023-10-29 15:50:09 -04:00
parent b66ec507ef
commit 3720558d93
6 changed files with 86 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ impl RenderFootnoteDefinition {
pub(crate) struct RenderRealFootnoteDefinition {
definition_id: String,
reference_link: String,
label: String,
contents: Vec<RenderAstNode>,
}
@@ -53,6 +54,7 @@ impl RenderRealFootnoteDefinition {
Ok(RenderRealFootnoteDefinition {
definition_id: original.get_definition_id(),
reference_link: format!("#{}", original.get_reference_id()),
label: original.get_display_label(),
contents,
})
}