gstack/make-pdf
Dylan Sacks 9570e865cf fix(make-pdf): hide empty TOC page numbers and dot leaders in print
Paged.js is not vendored in gstack, so the `target-counter` that would
fill `.toc-page` never resolves (browse/src/meta-commands.ts:545 documents
this: "make-pdf v1 ships without Paged.js; TOC renders without page
numbers"). Chrome has no native target-counter, so the spans stay empty
and the dot leaders run from each title into blank space, which reads as
a broken document.

screenCss() already hides both for HTML output. Do the same for print
until page numbers actually exist, and leave a comment to restore the
two rules if Paged.js ever lands.

Also give H3 its own `level-3` class. buildTocBlock mapped every heading
>= H2 to `level-2`, so sub-sections sat at the same indent as numbered
sections and read as top-level peers.

189/189 make-pdf tests pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-06 12:28:54 -05:00
..
src fix(make-pdf): hide empty TOC page numbers and dot leaders in print 2026-08-06 12:28:54 -05:00
test v1.58.0.0 feat: diagram + multi-format document engine (mermaid, excalidraw, single-file HTML, DOCX) (#1990) 2026-06-12 15:38:53 -07:00
SKILL.md v1.58.5.0 feat: first-run activation scaffold + gstack router front door (#2078) 2026-06-25 09:42:45 -07:00
SKILL.md.tmpl v1.58.0.0 feat: diagram + multi-format document engine (mermaid, excalidraw, single-file HTML, DOCX) (#1990) 2026-06-12 15:38:53 -07:00