Files
TylerandClaude Sonnet 4.6 f37a2ec141
Template tests / tests (push) Successful in 1m44s
Fix DOCX table of contents to render real entries instead of a placeholder
Previously the "Contents" page just emitted a TOC field whose cached
result was the literal text "Update contents in Word" - so unless a
user manually ran Update Field in Word, the TOC showed nothing useful
(and many viewers never run that update at all).

Now each step heading is wrapped in a bookmark, and the TOC is built
as real TOC1/2/3-styled paragraphs with hyperlinks to those bookmarks
and PAGEREF fields for page numbers, matching the entry list other
exporters already produce via tocEntries(). The whole thing stays
wrapped in the original `TOC \o "1-3" \h \z \u` field so Word can still
refresh page numbers, but the document is correct on first open even
without that step.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-15 17:26:50 -05:00
..
2026-06-15 14:22:31 -05:00
2026-06-15 13:59:04 -05:00
2026-06-15 14:22:31 -05:00
2026-06-15 14:32:14 -05:00
2026-06-15 13:49:31 -05:00
2026-06-15 14:22:31 -05:00