@speajus/markdown-to-pdf 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.pdf +0 -0
- package/dist/renderer.js +2 -0
- package/package.json +3 -2
package/README.pdf
CHANGED
|
Binary file
|
package/dist/renderer.js
CHANGED
|
@@ -537,7 +537,9 @@ async function renderMarkdownToPdf(markdown, options) {
|
|
|
537
537
|
const zebraColor = theme.table.zebraColor ?? '#f9f9f9';
|
|
538
538
|
for (let r = 0; r < table.rows.length; r++) {
|
|
539
539
|
const row = table.rows[r];
|
|
540
|
+
doc.y = y; // sync doc.y BEFORE ensureSpace check
|
|
540
541
|
ensureSpace(rowH);
|
|
542
|
+
y = doc.y; // re-sync AFTER possible page break
|
|
541
543
|
// Zebra stripe: fill even rows (0-indexed, so odd visual rows) with a tinted background
|
|
542
544
|
if (zebraStripes && r % 2 === 1) {
|
|
543
545
|
doc.save();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speajus/markdown-to-pdf",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "A new project created with Intent by Augment.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,5 +68,6 @@
|
|
|
68
68
|
"overrides": {
|
|
69
69
|
"canvas": "^3.2.1"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"packageManager": "pnpm@9.2.0+sha512.98a80fd11c2e7096747762304106432b3ddc67dcf54b5a8c01c93f68a2cd5e05e6821849522a06fb76284d41a2660d5e334f2ee3bbf29183bf2e739b1dafa771"
|
|
72
73
|
}
|