Add title to heading object.
This commit is contained in:
parent
6558f9b7c2
commit
23eb4d01f4
@ -43,6 +43,7 @@ pub struct Document<'s> {
|
|||||||
pub struct Heading<'s> {
|
pub struct Heading<'s> {
|
||||||
pub source: &'s str,
|
pub source: &'s str,
|
||||||
pub stars: usize,
|
pub stars: usize,
|
||||||
|
pub title: Vec<Object<'s>>,
|
||||||
pub children: Vec<DocumentElement<'s>>,
|
pub children: Vec<DocumentElement<'s>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,6 +132,7 @@ fn heading<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Hea
|
|||||||
Heading {
|
Heading {
|
||||||
source,
|
source,
|
||||||
stars: star_count,
|
stars: star_count,
|
||||||
|
title,
|
||||||
children,
|
children,
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
Loading…
Reference in New Issue
Block a user