Skip to content

Release 1.3.0: citation links and reference-list discovery - #2

Merged
lyingTree merged 1 commit into
mainfrom
feat/citation-preview-1.3.0
Nov 22, 2026
Merged

lyingTree merged 1 commit into
mainfrom
feat/citation-preview-1.3.0

Conversation

@lyingTree

Copy link
Copy Markdown
Owner

Why this change

Citation Preview 1.2.0 resolves anchored citation groups, but it does not give all citations consistent link styling or support bibliographies whose entries have no block IDs. A whole-range link also needs to show both its explicit target and the references named by its label.

What changes

  • Render resolved citations in blue (or the theme's link color), including brackets and separators. Preserve existing links and native single-reference previews; add navigation to visible plain-text numbers without changing the Markdown.
  • Show whole-group links such as [1-5](#^ref-1) in one popover: the specified reference, a horizontal divider, and all five expanded references.
  • Detect numbered bibliographies using structure and bibliographic evidence. Plain citations prefer the closest shared heading section, then source proximity. Missing entries are never filled from another list; explicit ref/sref links retain exact target resolution independently of headings.
  • Add Citation Preview: Add missing reference anchors, a manually invoked editor command that inserts missing IDs in one undoable transaction. Preserve existing IDs, avoid both exact and namespace/number collisions, and keep repeated runs idempotent.
  • Keep editor clicks and source syntax intact, refresh stale link states, and expose display/color settings with backward-compatible defaults.

Validation

  • Production build passed.
  • 232 automated tests across 11 files passed, including real CodeMirror state, DOM preservation, host lifecycle, navigation, split-preview fallback, settings migration, list selection, and anchor insertion.
  • ESLint: 0 errors; the existing settings display() deprecation warning remains.
  • Supplied Hocke note: 31 reference blocks, 45 citation groups. Supplied Runge note: 96 blocks, 108 groups (91 main, 17 supplementary). Original, renamed-heading, removed-heading, and CRLF variants all resolve.
  • Removing anchors and converting citations to plain numbers preserves every group's actual reference content in both notes. The manual command adds exactly 31/96 anchors; a second run adds 0.
  • The ZIP contains only main.js, manifest.json, and styles.css under citation-range-preview/, matching the standalone files byte for byte.

Native desktop Obsidian visual verification was not available in this environment; automated coverage uses the host boundary and real CodeMirror. Unanchored bibliography detection remains conservative and heuristic, controlled by the existing plain-citation setting.

Release

Version metadata is synchronized to 1.3.0. The plugin ID remains citation-range-preview and minimum Obsidian version remains 1.15.1. Release workflow behavior is unchanged; only its generated explanatory text is updated.

…iscovery

Add blue citation links, split previews for whole-range links, section-aware nearby reference detection, and a manually invoked command for missing anchors. Preserve exact ref/sref targets and native editor behavior.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T08:42:21.010054Z 9b55874 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lyingTree
lyingTree merged commit 165503f into main Nov 22, 2026
1 check passed
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.

1 participant