Skip to content

Conversation

@ColonelThirtyTwo
Copy link
Contributor

Remove the _Ref prefix from bookmark names in manually named headings and captions, making them visible in the MS Word bookmark list. Captions without a bookmark name will still generate a bookmark with the _Ref prefix.

This change won't break existing {{.ref}}s (since the prefix is removed from there too) but will cause previously-hidden caption bookmarks to appear. Bookmarks can still be hidden by manually prefixing then name with _Ref.

Fixes #707

Remove the `_Ref` prefix from bookmark names in manually named headings
and captions, making them visible in the MS Word bookmark list. Captions
without a bookmark name will still generate a bookmark with the `_Ref`
prefix.

This change won't break existing `{{.ref}}`s (since the prefix is
removed from there too) but will cause previously-hidden caption
bookmarks to appear. Bookmarks can still be hidden by manually prefixing
then name with `_Ref`.

Fixes GhostManager#707
@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.34%. Comparing base (9d4587d) to head (e268eea).
⚠️ Report is 40 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #792   +/-   ##
=======================================
  Coverage   91.34%   91.34%           
=======================================
  Files         367      367           
  Lines       20728    20728           
=======================================
  Hits        18935    18935           
  Misses       1793     1793           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bookmarks broken in the latest update

1 participant