Populate the name field on elements.
This commit is contained in:
@@ -13,6 +13,7 @@ use nom::sequence::tuple;
|
||||
|
||||
use super::keyword::affiliated_keyword;
|
||||
use super::org_source::OrgSource;
|
||||
use super::util::get_name;
|
||||
use super::util::include_input;
|
||||
use super::util::WORD_CONSTITUENT_CHARACTERS;
|
||||
use crate::context::parser_with_context;
|
||||
@@ -87,7 +88,7 @@ pub(crate) fn footnote_definition<'b, 'g, 'r, 's>(
|
||||
remaining,
|
||||
FootnoteDefinition {
|
||||
source: source.into(),
|
||||
name: None, // TODO
|
||||
name: get_name(&affiliated_keywords),
|
||||
label: lbl.into(),
|
||||
children: children.into_iter().map(|(_, item)| item).collect(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user