mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
Merge pull request #1541 from ehuss/id-chapter_begin
Remove chapter_begin id from print output.
This commit is contained in:
commit
dc2062ab36
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ impl HtmlHandlebars {
|
||||||
// Add page break between chapters
|
// Add page break between chapters
|
||||||
// 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
|
// 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
|
||||||
// Add both two CSS properties because of the compatibility issue
|
// Add both two CSS properties because of the compatibility issue
|
||||||
print_content.push_str(r#"<div id="chapter_begin" style="break-before: page; page-break-before: always;"></div>"#);
|
print_content
|
||||||
|
.push_str(r#"<div style="break-before: page; page-break-before: always;"></div>"#);
|
||||||
}
|
}
|
||||||
print_content.push_str(&fixed_content);
|
print_content.push_str(&fixed_content);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue