Files
wordcraft/crates/engine/src/cmd
004286e4b7 Cross-references point at real bookmarks, and Update Field refreshes them (#227)
insert.crossReference wrote every field as `REF _Ref \h` with a literal
bookmark name and created no bookmark, so the fields resolved to nothing
when updated or opened in Word. Now:

- Headings, figures, tables and equations get a hidden `_Ref<number>`
  bookmark around the target (label and number only for show=number),
  reused by later references with the same extent.
- Bookmark targets use the bookmark's own name and show its text, not
  its name.
- references.updateFields refreshes REF (bookmark text) and PAGEREF
  (bookmark page).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-10 09:43:15 -04:00
..