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

View File

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