gstack/make-pdf
0xDevNinja 8dce597eba fix(make-pdf): assign body heading ids so --toc anchors resolve
- buildTocBlock minted `toc-N` ids for its `#toc-N` anchors and
  `data-toc-target` spans, but no body heading ever received those ids,
  so every TOC link was a dead fragment and Paged.js had no target to
  count page numbers against
- Add annotateHeadingIds: walk H1-H3 in document order, inject `id="toc-N"`
  on headings that lack one, preserve any heading that already declares an id
  and point the TOC at it
- Share the resolved heading/id list between body and TOC so anchors and
  targets always agree
- 3 regression tests: anchor-resolves-to-heading, existing-id preserved,
  no id injection when toc is off

Fixes #1689.
2026-05-29 23:36:21 +05:30
..
src fix(make-pdf): assign body heading ids so --toc anchors resolve 2026-05-29 23:36:21 +05:30
test fix(make-pdf): assign body heading ids so --toc anchors resolve 2026-05-29 23:36:21 +05:30
SKILL.md v1.47.0.0 feat: /spec — author backlog-ready spec in 5 phases + optional agent spawn (#1698) (#1733) 2026-05-26 21:36:53 -07:00
SKILL.md.tmpl v1.31.1.0 fix wave: 3 community PRs (careful BSD sed, codex Step 0 rename, make-pdf setup ordering) (#1413) 2026-05-10 06:57:24 -07:00