File tree Expand file tree Collapse file tree 3 files changed +108
-67
lines changed
src/renderer/html_handlebars Expand file tree Collapse file tree 3 files changed +108
-67
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ fn render_item(
95
95
let mut breadcrumbs = chapter. parent_names . clone ( ) ;
96
96
let mut footnote_numbers = HashMap :: new ( ) ;
97
97
98
+ breadcrumbs. push ( chapter. name . clone ( ) ) ;
99
+
98
100
while let Some ( event) = p. next ( ) {
99
101
match event {
100
102
Event :: Start ( Tag :: Heading ( i) ) if i <= max_section_depth => {
Original file line number Diff line number Diff line change @@ -595,7 +595,10 @@ mod search {
595
595
docs[ & summary] [ "body" ] ,
596
596
"Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Unicode Second Chapter Nested Chapter Conclusion"
597
597
) ;
598
- assert_eq ! ( docs[ & summary] [ "breadcrumbs" ] , "First Chapter » Summary" ) ;
598
+ assert_eq ! (
599
+ docs[ & summary] [ "breadcrumbs" ] ,
600
+ "First Chapter » Includes » Summary"
601
+ ) ;
599
602
assert_eq ! ( docs[ & conclusion] [ "body" ] , "I put <HTML> in here!" ) ;
600
603
}
601
604
You can’t perform that action at this time.
0 commit comments