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(
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 => {
Original file line number Diff line number Diff line change @@ -595,7 +595,10 @@ mod search {
595595 docs[ & summary] [ "body" ] ,
596596 "Dummy Book Introduction First Chapter Nested Chapter Includes Recursive Markdown Unicode Second Chapter Nested Chapter Conclusion"
597597 ) ;
598- assert_eq ! ( docs[ & summary] [ "breadcrumbs" ] , "First Chapter » Summary" ) ;
598+ assert_eq ! (
599+ docs[ & summary] [ "breadcrumbs" ] ,
600+ "First Chapter » Includes » Summary"
601+ ) ;
599602 assert_eq ! ( docs[ & conclusion] [ "body" ] , "I put <HTML> in here!" ) ;
600603 }
601604
You can’t perform that action at this time.
0 commit comments