quarto-dev / quarto-dev/quarto-cli

crossref - combined lst- and fig- outputs are broken in Jupyter

Open
#12,434 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug crossref engines-jupyter
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Minimal repro:

---
format: html
---

```{python}
# | lst-label: lst-1
# | lst-cap: A listing caption
# | id: fig-1
# | fig-cap: A figure caption
from matplotlib.pyplot import plot

plot([1, 2, 3])
```

This works in knitr and should work in Jupyter as well.

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

Run the minimal reproduction from the issue in Jupyter and inspect the cross-reference handling for combined lst- and fig- labels. Done means the rendered HTML preserves both the listing and figure cross-references and captions, matching the stated knitr behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter, python
Domain
tooling
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.