quarto-dev / quarto-dev/quarto-cli
Warn when the same cross reference is defined more than once
Open
@cscheid is already working on this.
Since Nov 13, 2023.
bug
lint
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
There should be a warning when a cross-reference identifier is defined more than once.
For example, in this qmd, some indication to the user that they have defined fig-1 more than once:
---
title: Multiple cross ref defs
---
::: {#fig-1}
CONTENT
First
:::
@fig-1
::: {#fig-1}
CONTENT
Second
:::
@fig-1
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.
Assessment
This issue has not been assessed yet.