mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-29 04:47:10 -06:00
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>