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 source: &'s str,
|
||||
pub stars: usize,
|
||||
pub title: Vec<Object<'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 {
|
||||
source,
|
||||
stars: star_count,
|
||||
title,
|
||||
children,
|
||||
},
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user