Book project: citations stay as @key in HTML output (Typst works)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- documentation
Línea de trabajo
Start by reading the book rendering and citation handling entry points; the issue names no source files or tests, so first trace where book projects collect bibliography metadata for HTML output. Reproduce with the provided two chapter files and refs.bib, then compare with website and Typst renders. Done means HTML renders the citation as “Knuth (1984)” with a bibliography entry.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
In a type: book project rendered to HTML, citations are left as raw @key text and no bibliography is produced. The same project renders correctly to Typst, and the same bibliography setup works in a type: website project and in a single document.
Reproduction
_quarto.yml:
project:
type: book
book:
title: "Book"
chapters:
- index.qmd
- ch1.qmd
bibliography: refs.bib
index.qmd:
# Preface {.unnumbered}
Intro
ch1.qmd:
# One
As in @knuth84.
refs.bib:
@book{knuth84, author={Knuth, Donald}, title={The TeXbook}, year={1984}, publisher={Addison-Wesley}}
q2 render --to html
Actual
_book/ch1.html contains <span class="citation" data-cites="knuth84">@knuth84</span>. No "Knuth (1984)" and no references section.
Putting bibliography: refs.bib in the chapter's own front matter does not change the result.
Expected
"Knuth (1984)" linking to a bibliography entry, as with q2 render --to typst on the same project and as in Quarto 1.
What works
q2 render --to typston the same book: citation and bibliography resolve.- A
type: websiteproject with the samebibliography: citation resolves to a link to#ref-knuth84.
Possibly related
In a slightly larger book (3 chapters with {#sec-...} and {#fig-...} labels), HTML rendering also prints unresolved crossref warnings for labels that are defined in another chapter, although the links in the HTML output are correct. I did not narrow this down separately.
Related, closed: #1026 (citations in HTML stay as @key when bibliography is set), which looks like the same symptom fixed for single documents.
Found with q2 0.43.0 built from origin/main at 929891fa5 (2026-11-10). Also reproduces with the installed 0.40.0.
- Lenguaje dominante
- Rust
- Estrellas
- 302
- Forks
- 22
- Merge medio
- 5 h 8 min
- PR fusionados (30 d)
- 220
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/q2
-
`q2 render` ignores `NO_COLOR` and prints colour codes and hyperlinks in its diagnosticsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
quarto-dev/q2#1135 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quarto-dev/q2#1133 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quarto-dev/q2#1103 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
quarto-dev/q2#1095 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
quarto-dev/q2#1031 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/q2
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:cli kind:docs prio:low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DecapodLabs/decapod#1626 · 1 comentario ·
Los mantenedores suelen responder en 1 día