quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

Reference in lightbox caption not rendered #10709

Open fkohrt opened 1 month ago

fkohrt commented 1 month ago

Bug description

A reference in a lightbox caption is not being rendered.

Steps to reproduce

---
title: "Lightbox test"
format: html
lightbox: true
references:
- id: fenner2012a
  title: One-click science marketing
  author:
  - family: Fenner
    given: Martin
    orcid: 0000-0003-1419-2405
  container-title: Nature Materials
  volume: '11'
  URL: 'http://dx.doi.org/10.1038/nmat3283'
  DOI: '10.1038/nmat3283'
  issue: '4'
  publisher: Nature Publishing Group
  page: 261-263
  type: article-journal
  issued:
    date-parts:
    - - 2012
      - 3
---

![Some claim [@fenner2012a].](48881397073_c189eba6a9_q.jpg)

48881397073_c189eba6a9_q

Expected behavior

Actual behavior

Your environment

Quarto check output

quarto check ``` Quarto 1.6.9 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.2.0: OK Dart Sass version 1.70.0: OK Deno version 1.41.0: OK Typst version 0.11.0: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.6.9 Path: /home//bin/quarto/bin [✓] Checking tools....................OK TinyTeX: (not installed) Chromium: (not installed) [✓] Checking LaTeX....................OK Using: Installation From Path Path: /usr/local/texlive/2024/bin/x86_64-linux Version: 2024 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.12.4 Path: /usr/bin/python3 Jupyter: 5.7.1 Kernels: ir, python3 [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........OK Version: 4.4.1 Path: /usr/lib64/R LibPaths: - /home//R/x86_64-redhat-linux-gnu-library/4.4 - /usr/local/lib/R/library - /usr/lib64/R/library - /usr/share/R/library knitr: 1.48 rmarkdown: 2.28 [✓] Checking Knitr engine render......OK ```
cderv commented 1 month ago

Title and Description are passed as attributes and this happens before citation resolution. This will not be easy to fix unless we can do something like in Tables (with data-qmd attributes) 🤔

cscheid commented 1 month ago

This is a super annoying bug, though... Let's try to have a discussion about it before 1.6 is out.

cscheid commented 1 week ago

The interaction with potentially-repeating footnotes makes this design tricky :( We need to push to 1.7.