Book project: citations stay as @key in HTML output (Typst works)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 302
- Fork
- 22
- Merge trung bình
- 5 giờ 8 phút
- Pull request đã merge (30 ngày)
- 220
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/q2
-
`q2 render` ignores `NO_COLOR` and prints colour codes and hyperlinks in its diagnosticsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
quarto-dev/q2#1135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
quarto-dev/q2#1133 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quarto-dev/q2#1103 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
quarto-dev/q2#1095 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
quarto-dev/q2#1031 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/q2
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cli kind:docs prio:low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DecapodLabs/decapod#1626 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày