Copy heading level.
This commit is contained in:
parent
ba2756c762
commit
4c59011389
@ -5,6 +5,7 @@ use super::Object;
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Heading {
|
pub(crate) struct Heading {
|
||||||
title: Vec<Object>,
|
title: Vec<Object>,
|
||||||
|
level: organic::types::HeadlineLevel,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Heading {
|
impl Heading {
|
||||||
@ -14,6 +15,9 @@ impl Heading {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(Object::new)
|
.map(Object::new)
|
||||||
.collect::<Result<Vec<_>, _>>()?;
|
.collect::<Result<Vec<_>, _>>()?;
|
||||||
Ok(Heading { title })
|
Ok(Heading {
|
||||||
|
title,
|
||||||
|
level: heading.level,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user