Book project: citations stay as @key in HTML output (Typst works)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 302
- フォーク
- 22
- 平均マージ
- 5時間 8分
- マージ済み PR(30日)
- 220
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/q2 のほかの issue
-
`q2 render` ignores `NO_COLOR` and prints colour codes and hyperlinks in its diagnostics対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
quarto-dev/q2#1135 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
quarto-dev/q2#1133 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
quarto-dev/q2#1103 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/q2#1095 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
quarto-dev/q2#1031 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:cli kind:docs prio:low
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DecapodLabs/decapod#1626 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信