quarto-dev / quarto-dev/quarto-cli

Warn when the same cross reference is defined more than once

Open
#7,552 4 comments 0 reactions 1 assignee View on GitHub

@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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.