Skip to content

Commit 16c5ec4

Browse files
committed
Remove chapter_begin id from print output.
1 parent 7e7e779 commit 16c5ec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ impl HtmlHandlebars {
6161
// Add page break between chapters
6262
// See https://developer.mozilla.org/en-US/docs/Web/CSS/break-before and https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-before
6363
// Add both two CSS properties because of the compatibility issue
64-
print_content.push_str(r#"<div id="chapter_begin" style="break-before: page; page-break-before: always;"></div>"#);
64+
print_content
65+
.push_str(r#"<div style="break-before: page; page-break-before: always;"></div>"#);
6566
}
6667
print_content.push_str(&fixed_content);
6768

0 commit comments

Comments
 (0)