mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
Add chapter name to search result breadcrumbs
This commit is contained in:
parent
59f2a9bf4e
commit
942cc12a74
1 changed files with 2 additions and 0 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue