### Bug description

When a footnote is reused, it is duplicated.

This is the case at least for `html`, `pdf`, and `revealjs`.

```qmd
---
format:
  html: default
  pdf: default
  revealjs: default
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.[^1]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.[^1]

[^1]: This is the first footnote.
```

| `html` | `pdf` |
|:------:|:-----:|
| <img width="703" alt="image" src="https://user-images.githubusercontent.com/8896044/236572912-0cc8aafa-abd1-4c4b-a5e1-98decf32e23c.png"> | <img width="405" alt="image" src="https://user-images.githubusercontent.com/8896044/236573618-78ccb500-7e0a-4b4a-b690-c39bbe08f468.png"> |


---

For instance the expected results would be the one that can be seen on GitHub.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.[^1]

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.[^1]

[^1]: This is the first footnote.


---

Quarto: latest development version
OS: MacOS Apple Silicon
IDE: VSCode

<img width="1433" alt="image" src="https://user-images.githubusercontent.com/8896044/236573856-494a95d4-f2bc-43c1-b3b1-6caca08a6f54.png">


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
2023-05-05T21:45:29Z
mcanouil
bug upstream crossref footnotes pandoc
Future
open
Footnotes are duplicated when reused
https://github.com/quarto-dev/quarto-cli/issues/5440