quarto-dev / quarto-dev/quarto-cli

Backlinks for references in html output are missing

Open
#14,007 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

citations duplicate enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I have:
  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide
Bug description

No response

Steps to reproduce

Quarto.qmd:

---
bibliography: ref.bib
format:  html
---
# Title
Reference one, [@example01]
Reference two that is the same as one, [@Nobody007]
Reference three new reference, [@example01]

# References
::: {#refs}
:::

Refs.bib:

@misc{ example01,
       author = "Good Person",
       title = "His Article",
       year = "1988" }

@misc{ Nobody007,
       author = "Nobody Jr",
       title = "My Article",
       year = "2006" }
Actual behavior
Image

Correctly produces html with two citations instead of three since one is repeated. But it won't produce backlinks to where it came from.

Expected behavior

Should be:
Image

https://github.com/user-attachments/assets/55acdd6b-9723-4468-bfb0-01232bac9c6d

instead shows no backlinks.
Looks like this was discussed for pdfs before orgs/quarto-dev/discussions/5895 and also corrected(?) too but not so for html. Based on the solution provided by @anrath seems like it's a simple fix but it's a simple feature to have it baked in and also I don't want html with js rendering on it.

Your environment
  • Quarto 1.8.27
  • Windows 11
Quarto check output

Quarto 1.8.27
[>] Checking environment information...
Quarto cache location: C:\Users\user\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.8.27
Path: C:\Program Files\Quarto\bin
CodePage: 1252

[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)

[>] Checking LaTeX....................OK
Using: Installation From Path
Path: C:\texlive\2025\bin\windows
Version: 2025

[>] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Source: Windows Registry

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
Version: 3.12.7
Path: C:/Users/user/AppData/Local/Programs/Python/Python312/python.exe
Jupyter: 5.9.1
Kernels: wolframlanguage12.1, python3

[>] Checking Jupyter engine render....OK

[>] Checking R installation...........(None)

  Unable to locate an installed version of R.
  Install R from https://cloud.r-project.org/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with Quarto.qmd and ref.bib using the HTML format, then inspect the generated citation and references output. Read the linked discussion 5895 for the prior PDF approach and compare the result with the expected backlinks; done means repeated citations link back to every citation location without requiring JavaScript.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.