Skip to content

Commit

Permalink
avoid page breaks after section titles and inside subsections
Browse files Browse the repository at this point in the history
  • Loading branch information
RLesur committed Apr 4, 2020
1 parent 94531e0 commit affb42f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGES IN pagedown VERSION 0.10

## BUG FIXES

- In `html_resume()` template, avoid page breaks after section titles and inside subsections (thanks, @kevinrue, #170).

# CHANGES IN pagedown VERSION 0.9

Expand Down
10 changes: 10 additions & 0 deletions inst/resources/css/resume.css
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,16 @@ h1, h2{
font-style: normal;
}

/* Page breaks */

h2 {
break-after: avoid;
}

.blocks {
break-inside: avoid;
}

/* Paged.js viewer */

@media screen {
Expand Down

0 comments on commit affb42f

Please sign in to comment.