Add chapter name to search result breadcrumbs

This commit is contained in:
avitex 2020-11-25 14:46:49 +11:00
parent 59f2a9bf4e
commit 942cc12a74
No known key found for this signature in database
GPG key ID: 38C76CBF3749D62C

View file

@ -95,6 +95,8 @@ fn render_item(
let mut breadcrumbs = chapter.parent_names.clone();
let mut footnote_numbers = HashMap::new();
breadcrumbs.push(chapter.name.clone());
while let Some(event) = p.next() {
match event {
Event::Start(Tag::Heading(i)) if i <= max_section_depth => {