Repository navigation
Fix anchor-based citation resolution for 1.2.0 - #1
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The previous parser required a recognized bibliography heading. It indexed the supplied Hocke note, but not the Runge note with counted Chinese headings. A number-only index also cannot distinguish main reference 1 from supplementary reference 1, and label-only hover caches can return the wrong source.
What changes
^ref-N/^sref-Nanchors. Headings are unrestricted and optional. Also supportref1/sref1and named sets such asref-appendix-N.citation-range-previewand minimum Obsidian version1.15.1.Validation
npm run check: production build passed; 171 tests passed across 8 files; ESLint reported no errors and one existing deprecated-settings-display warning in unchangedsrc/settings.ts.npm run package: installation archive verified to contain the matchingmain.js,manifest.json, andstyles.cssundercitation-range-preview/.The supplied full notes are not committed; regression fixtures use fictional references.
Compatibility
Per the requested anchor-based behavior, an unanchored numbered list no longer establishes references, regardless of its heading. Plain in-text citations still work when existing supported block IDs identify a unique reference set. Existing notes with
ref/srefanchors need no content changes.