ghost-paper 0.3.4 → 0.3.5

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.
@@ -2,7 +2,7 @@ import {
2
2
  build,
3
3
  buildPdf,
4
4
  buildPrintHtml
5
- } from "./chunk-NWFECGNX.js";
5
+ } from "./chunk-6PJNYUG6.js";
6
6
  export {
7
7
  build,
8
8
  buildPdf,
@@ -984,6 +984,10 @@ var CSS = `
984
984
  .tab-content tbody tr.row-stretch td {
985
985
  background: #E8EDCF;
986
986
  }
987
+ .tab-content tbody tr.row-total td {
988
+ border-top: 2px solid var(--charcoal);
989
+ font-weight: 600;
990
+ }
987
991
 
988
992
  hr.pagebreak {
989
993
  border: none;
@@ -1294,6 +1298,10 @@ var PRINT_CSS = `
1294
1298
  .tab-content tbody tr.row-stretch td {
1295
1299
  background: #E5EACC;
1296
1300
  }
1301
+ .tab-content tbody tr.row-total td {
1302
+ border-top: 2px solid #2A2A28;
1303
+ font-weight: 600;
1304
+ }
1297
1305
 
1298
1306
  /* KPIs: compact grid for column width */
1299
1307
  .kpi-strip {
@@ -1409,6 +1417,8 @@ function renderTable(table, wide) {
1409
1417
  rowClass = ' class="row-forecast"';
1410
1418
  } else if (/actual/.test(firstCell)) {
1411
1419
  rowClass = ' class="row-actual"';
1420
+ } else if (/^(grand\s+)?total$|^sub\s*total$|^sum$/.test(firstCell.trim())) {
1421
+ rowClass = ' class="row-total"';
1412
1422
  }
1413
1423
  const cells = row.map((cell) => {
1414
1424
  return `<td>${escapeHtml3(cell)}</td>`;
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  build
4
- } from "./chunk-NWFECGNX.js";
4
+ } from "./chunk-6PJNYUG6.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { Command } from "commander";
@@ -90,7 +90,7 @@ buildCmd.command("pdf").description("Convert a markdown file to a PDF report").a
90
90
  const inputPath = resolve(input);
91
91
  const markdown = readFileSync(inputPath, "utf-8");
92
92
  const outputPath = opts.output ? resolve(opts.output) : inputPath.replace(/\.md$/, ".pdf");
93
- const { buildPdf } = await import("./-5C6AORSD.js");
93
+ const { buildPdf } = await import("./-TBUK2SY6.js");
94
94
  await buildPdf(markdown, outputPath, {
95
95
  pageSize: opts.pageSize ?? "A4",
96
96
  landscape: opts.landscape ?? false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghost-paper",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Turn markdown into beautiful HTML reports",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",