Skip to content

Commit 942cc12

Browse files
committed
Add chapter name to search result breadcrumbs
1 parent 59f2a9b commit 942cc12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/html_handlebars/search.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ fn render_item(
9595
let mut breadcrumbs = chapter.parent_names.clone();
9696
let mut footnote_numbers = HashMap::new();
9797

98+
breadcrumbs.push(chapter.name.clone());
99+
98100
while let Some(event) = p.next() {
99101
match event {
100102
Event::Start(Tag::Heading(i)) if i <= max_section_depth => {

0 commit comments

Comments
 (0)