Copy heading level.

This commit is contained in:
Tom Alexander 2023-10-27 12:14:07 -04:00
parent ba2756c762
commit 4c59011389
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ use super::Object;
#[derive(Debug)]
pub(crate) struct Heading {
title: Vec<Object>,
level: organic::types::HeadlineLevel,
}
impl Heading {
@ -14,6 +15,9 @@ impl Heading {
.iter()
.map(Object::new)
.collect::<Result<Vec<_>, _>>()?;
Ok(Heading { title })
Ok(Heading {
title,
level: heading.level,
})
}
}