gstack/make-pdf/test
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
..
e2e feat(v1.4.0.0): /make-pdf — markdown to publication-quality PDFs (#1086) 2026-04-20 13:20:30 +08:00
fixtures feat(v1.4.0.0): /make-pdf — markdown to publication-quality PDFs (#1086) 2026-04-20 13:20:30 +08:00
browseClient.test.ts v1.30.0.0 fix wave: 21 community PRs + Windows CI extension + codex flag-semantics smoke (#1391) 2026-05-09 08:06:47 -07:00
pdftotext.test.ts v1.30.0.0 fix wave: 21 community PRs + Windows CI extension + codex flag-semantics smoke (#1391) 2026-05-09 08:06:47 -07:00
render.test.ts fix(make-pdf): assign body heading ids so --toc anchors resolve 2026-05-29 23:36:21 +05:30