Lua API to list the references of a document, like pandoc.utils.references
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
調査の方向性
Start by reading crates/pampa/src/lua/utils.rs, where the issue says Lua utilities are registered, and trace how q2's citeproc reads document references. The goal is a Lua-accessible function returning those same references with at least their id; verify that a filter can distinguish reference IDs from other @ syntax. The issue does not name tests, so find the relevant Lua API or citation tests before implementing.
索引モデルが issue の本文から書いたものです。
説明
Description
Quarto 1 filters can call pandoc.utils.references(doc) to get the references that a document defines, from its references metadata and its bibliography files.
q2 resolves citations in its own citeproc, but no Lua function gives that list: pandoc.utils.references is nil in q2 0.48.0-nightly.20261126, and crates/pampa/src/lua/utils.rs does not register it.
Filters use this list to tell a real citation from other @ syntax.
For example, quarto-gitlink turns @user into a link to a GitHub profile, but leaves @key alone when key is a reference id.
Without the list, a filter cannot know which Cite elements q2 will resolve.
It has to keep every citation as is, or risk turning a reference into a user link.
function Pandoc(doc)
-- Quarto 1: a list of references with an `id` field.
-- q2: attempt to call a nil value (field 'references').
for _, ref in ipairs(pandoc.utils.references(doc)) do
quarto.log.output(ref.id)
end
end
It would help to have pandoc.utils.references, or a function in the quarto namespace, that returns the same references q2's citeproc reads, with at least their id.
Parsing the bibliography files from Lua is the only alternative, and that means support for BibTeX, CSL JSON and CSL YAML in each filter.
- 主要言語
- Rust
- スター
- 316
- フォーク
- 23
- 平均マージ
- 11時間 49分
- マージ済み PR(30日)
- 245
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/q2 のほかの issue
-
Heading anchor links have no icon: AnchorJS is initialised with an empty `icon`対応中かも @cscheid が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1419 ·
メンテナーはふだん 1 日以内に返信
-
bug testing windows
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1346 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/q2#1095 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
quarto-dev/q2#1418 ·
メンテナーはふだん 1 日以内に返信
-
bug readers-writers windows
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
quarto-dev/q2#1416 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
BurntSushi/jiff#755 ·
メンテナーはふだん 1 日以内に返信
-
After the kernel is given up on, a new import leaves "Importing…" and its Cancel on the status lineオープンbug help wanted priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sawhorse3d/sawhorse#163 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MartinPTielemans/ilo#4607 ·