dengchuangwu11 downloadsPreview numeric citation groups in Page preview using the numbered bibliography in the same note.
Preview and navigate numeric citations in Obsidian. Hover over a single citation [1], multiple citations [1, 3, 5], or a range [1-10] to see the corresponding references in one card. Select a numbered button in the preview to jump to that reference in the same note.
Your note must contain a numbered bibliography in the format described below. Citation Preview reads the reference entries already in that Markdown file.
简体中文 · Example note · Releases
| Citation | References shown |
|---|---|
[1] |
Reference 1 |
[1, 3, 5] |
References 1, 3, and 5 |
[1-10] or [1–10] |
All ten references, 1 through 10 |
[1–3, 5, 8–10] |
References 1, 2, 3, 5, 8, 9, and 10 |
Use this consistent structure for your notes:
## References or ## 参考文献.[1], followed by its text. Separate entries with a blank line. A range such as [1-10] needs entries 1 through 10.^ref-1, and link the matching number to #^ref-1. The template below uses this convention for every entry.Copy the contents of this example into a note. The entries are fictional placeholders; replace them with your own references.
A single citation supports this statement [1].
Several sources support this statement [1, 3, 5].
The full set of sources is cited here [1-10].
A mixed group is also supported [1–3, 5, 8–10].
## References
[1] Example Author One. Fictional reference one. ^ref-1
[2] Example Author Two. Fictional reference two. ^ref-2
[3] Example Author Three. Fictional reference three. ^ref-3
[4] Example Author Four. Fictional reference four. ^ref-4
[5] Example Author Five. Fictional reference five. ^ref-5
[6] Example Author Six. Fictional reference six. ^ref-6
[7] Example Author Seven. Fictional reference seven. ^ref-7
[8] Example Author Eight. Fictional reference eight. ^ref-8
[9] Example Author Nine. Fictional reference nine. ^ref-9
[10] Example Author Ten. Fictional reference ten. ^ref-10
The backtick fences above are only for displaying the example in this README. Paste their contents as normal Markdown, not as a code block. The complete demonstration note also includes linked citations and a deliberate missing-reference example.
Block IDs are needed for the linked examples below. Plain citations and the preview's numbered jump buttons also work without block IDs.
To keep a citation's numbers as native Obsidian links, use the same bibliography with these body forms:
Single: \[[1](<#^ref-1>)\]
Multiple: \[[1](<#^ref-1>), [3](<#^ref-3>), [5](<#^ref-5>)\]
Range: \[[1](<#^ref-1>)-[10](<#^ref-10>)\]
Mixed: \[[1](<#^ref-1>)-[3](<#^ref-3>), [5](<#^ref-5>), [8](<#^ref-8>)-[10](<#^ref-10>)\]
The outer \[ and \] produce the visible square brackets around the citation. The inner [1](<#^ref-1>) links the number to its reference block. Keep the outer escaped brackets for a single citation too: a bare [1](<#^ref-1>) renders only 1, so it does not match the bracketed citation in reading view. Angle brackets around the link destination are supported in version 1.1.0; the equivalent complete form without angle brackets, \[[1](#^ref-1)\], is also supported.
Hovering shows Citation Preview's card. Clicking a link in the body keeps Obsidian's normal link behavior, including the click or modifier behavior of the current editing mode. Use the numbered button inside the preview for the plugin's jump action. Plain text such as [1] gets a preview but is not turned into a clickable body link.
Wikilinks can use numeric aliases and the same block IDs:
Single: \[[[#^ref-1|1]]\]
Multiple: \[[[#^ref-1|1]], [[#^ref-3|3]], [[#^ref-5|5]]\]
Range: \[[[#^ref-1|1]]-[[#^ref-10|10]]\]
Existing bibliographies with explicitly numbered ordered-list entries, such as 1. Author..., 2. Author..., and 3. Author..., are also supported. Write the actual number in the Markdown source. Repeating 1. for every item may look correctly numbered after rendering, but creates duplicate reference 1 entries for this plugin. The [1], [2], [3] format above avoids that ambiguity.
Linked citations must point to the current note's references. External URLs and references in other notes are not resolved as entries in the current bibliography. An imported note needs to follow the supported structure before previews can work; references that exist only in a PDF or a Zotero library are not imported automatically.
[n] button inside the card to jump to that entry in the source note. This works for both plain and linked citations.If an intermediate reference is missing or a number is duplicated, its row explains the problem and its jump button is disabled. Correct the bibliography to resolve it. The plugin does not fetch or invent missing reference information.
citation-preview-<version>.zip, such as citation-preview-1.1.0.zip, from Releases.citation-range-preview folder into your vault's configuration directory under plugins. The default location is <vault>/.obsidian/plugins/citation-range-preview/.main.js, manifest.json, and styles.css sit directly inside that folder. Avoid an extra nested folder.The installation folder remains citation-range-preview to preserve existing installations and settings after the name change. If updating from Citation Range Preview 1.0.x, replace the three release files in that existing folder and keep data.json. Do not create a second plugin folder named citation-preview.
You can also download main.js, manifest.json, and styles.css as individual release assets. GitHub's automatically generated source-code archives are for development; use the installation ZIP or the three compiled assets to install the plugin. If your vault uses a custom configuration directory, use that directory in place of .obsidian.
Installation through Obsidian's plugin browser becomes available after the Obsidian Community entry is accepted and published. Until the listing is available, use the release installation above.
| Setting | Default | Purpose |
|---|---|---|
| Hover delay | 300 ms | Delay before opening a preview. |
| Close delay | 200 ms | Time allowed to move between a citation and its preview. |
| Maximum references per group | 100 | Groups larger than this limit are skipped. |
| Recognize plain numeric citations | On | Recognize bracketed numeric citations without links. |
| Require modifier key | Off | Require Ctrl or Command when hovering. |
| Enable editor previews | On | Show previews in Live Preview and source mode. |
If ordinary numeric intervals are being recognized as citations, turn off Recognize plain numeric citations and use the linked citation format instead.
Mouse hover on desktop is the primary interaction. This release has no dedicated tap-to-preview gesture for touchscreens. The minimum app version in manifest.json describes API compatibility; it does not mean every device or Obsidian version has been manually tested.
Previews display the reference information written in your note. They do not open every cited paper's full text or PDF, resolve author–date citations, verify publications, or fill in missing authors, titles, DOIs, or files. Nonstandard imported Markdown, custom HTML layouts, and other hover plugins may need individual adjustments. Existing links in reference text remain available in the card; embedded images and notes are shown as links to keep the preview lightweight.
Citation Preview resolves references locally within your vault and saves its settings through Obsidian. Citation lookup makes no network requests, uses no AI service, sends no telemetry, and does not read files outside the vault. Following an external link already present in a reference is a user-initiated navigation.
Use Node.js 24 and the committed dependency lock file.
npm ci
npm run check
npm run package
check runs the production build, automated tests, and ESLint. package creates dist/citation-preview-<version>.zip; its installation folder retains the plugin ID citation-range-preview. npm run dev starts the development build watcher.
The release workflow checks that the tag, package version, and manifest version agree before publishing. Use a tag such as 1.1.0, without a v prefix. Actual environment checks and publication status belong in the release checklist.
Open an issue with your Obsidian version, view mode, and a minimal note containing both citations and matching reference entries. Replace private or unpublished material with fictional text before sharing.
MIT, copyright 2026 Chuangwu Deng.