gstack/make-pdf/src
Garry Tan 9397e7f847
feat(make-pdf): typography scale-up, zero image truncation, landscape vertical centering
Dogfooding round on the repo README surfaced four output-quality bugs:

- Type was too small everywhere: body 11→12pt, h1 22→26pt, h2 15→18pt,
  cover title 32→56pt with poster spacing, cover meta 10→13pt, TOC 11→12pt
  with tighter leading, code 9.5→10.5pt, tables 10→11pt.
- Zero image truncation, ever: the max-width cap was figure-scoped, but
  markdown images render as <p><img> — a 1850px GitHub screenshot ran off
  the page edge. Global img { max-width: 100%; height: auto; } cap.
- hyphens: auto put real 'dif-\nferent' breaks into the PDF text layer the
  moment 12pt made lines wrap (combined-gate caught it). Clean copy-paste
  is the product contract; left-aligned rag doesn't need hyphenation →
  hyphens: manual.
- Promoted landscape blocks now vertically center. CSS flex/min-height
  centering fragments into phantom empty landscape pages in Chromium
  (bisected: min-height at ANY value; 3 promotions printed 5 pages), so
  image-policy computes an inline margin-top from each block's known
  aspect ratio against the landscape content box instead — fragmentation
  handles margins fine. .page-wide also drops its explicit break-before/
  after (the page-name change already breaks on both sides).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 06:32:55 -07:00
..
browseClient.ts feat(make-pdf): diagram pre-pass — mermaid/excalidraw fences render as vector SVG; local images inline as data URIs 2026-06-11 23:59:40 -07:00
cli.ts feat(make-pdf): --to html|docx output formats 2026-06-12 00:12:04 -07:00
commands.ts feat(v1.4.0.0): /make-pdf — markdown to publication-quality PDFs (#1086) 2026-04-20 13:20:30 +08:00
diagram-prepass.ts feat(make-pdf): typography scale-up, zero image truncation, landscape vertical centering 2026-06-12 06:32:55 -07:00
image-policy.ts feat(make-pdf): typography scale-up, zero image truncation, landscape vertical centering 2026-06-12 06:32:55 -07:00
image-size.ts feat(make-pdf): diagram pre-pass — mermaid/excalidraw fences render as vector SVG; local images inline as data URIs 2026-06-11 23:59:40 -07:00
orchestrator.ts feat(make-pdf): typography scale-up, zero image truncation, landscape vertical centering 2026-06-12 06:32:55 -07:00
pdftotext.ts v1.52.2.0 fix(make-pdf): render emoji instead of tofu (▯) on Linux (#1787) 2026-05-29 18:06:19 -07:00
print-css.ts feat(make-pdf): typography scale-up, zero image truncation, landscape vertical centering 2026-06-12 06:32:55 -07:00
render.ts feat(make-pdf): width directives + conservative auto-landscape via CSS named pages 2026-06-12 00:06:45 -07:00
setup.ts feat(v1.4.0.0): /make-pdf — markdown to publication-quality PDFs (#1086) 2026-04-20 13:20:30 +08:00
smartypants.ts feat(v1.4.0.0): /make-pdf — markdown to publication-quality PDFs (#1086) 2026-04-20 13:20:30 +08:00
types.ts feat(make-pdf): --to html|docx output formats 2026-06-12 00:12:04 -07:00