Skip to content

Commit f47e3a6

Browse files
committed
fix #345: also consider unnumbered headings when adding hr below them
1 parent 26df10d commit f47e3a6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: pagedown
22
Type: Package
33
Title: Paginate the HTML Output of R Markdown with CSS for Print
4-
Version: 0.23.1
4+
Version: 0.23.2
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
77
person("Romain", "Lesur", role = c("aut", "cph"), comment = c(ORCID = "0000-0002-0721-5595")),

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# CHANGES IN pagedown VERSION 0.24
22

3+
- Fixed the bug that horizontal lines are not added below unnumbered h1 headers in the `poster_jacobs` format (thanks, @djsimmonds, #345).
34

45
# CHANGES IN pagedown VERSION 0.23
56

inst/resources/html/poster-jacobs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 class="institute">$institute$</h2>
4545
// add appropriate classes to h1 and its parent div
4646
document.querySelectorAll('h1').forEach((el, i) => {
4747
const p = el.parentNode;
48-
if (p.className.match(/^section level1$$/)) {
48+
if (p.className.match(/^section level1( unnumbered)?$$/)) {
4949
el.append(document.createElement('hr'));
5050
}
5151
p.classList.add(`section-$${i + 1}`);

0 commit comments

Comments
 (0)