Add title to heading object.

This commit is contained in:
Tom Alexander 2023-03-25 12:18:47 -04:00
parent 6558f9b7c2
commit 23eb4d01f4
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 2 additions and 0 deletions

View File

@ -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,
},
))