Skip to content

Commit 394fb56

Browse files
committed
add .page styling edge case handling
1 parent a3993a9 commit 394fb56

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "print-toc",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Generates a table of contents for a printed HTML document.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const STYLES = `
88
margin-top: -1px;
99
}
1010
.page {
11+
position: relative;
12+
page-break-after: auto;
1113
page-break-inside: avoid;
14+
display: block;
1215
}
1316
.break {
1417
page-break-before: always;

0 commit comments

Comments
 (0)