quarto-dev / quarto-dev/quarto-cli
crossref - combined lst- and fig- outputs are broken in Jupyter
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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