List tables: multiple table bodies (`.list-table-body`, or a table as a row) are rejected

オープン
#1,334 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
html, markdown, rust
領域
documentation

調査の方向性

The list-table parsing lives in q2's Rust code for the pandoc-ext list-table extension, where the row-must-be-a-bullet-list check raises Q-2-35. Start by finding that check and the code path for a row that is a nested div or pipe table, then compare with the reference behaviour in pandoc-ext/list-table. Done when the repro yields a thead with Fish and Ocean and a second tbody carrying the div's attributes, with no warning.

索引モデルが issue の本文から書いたものです。

説明

Tested with q2 0.47.0 on Windows 11.

In pandoc-ext/list-table, a row that is itself a table starts a new table body: "If a list row is a table […], its rows become a new table body." That table can be a nested .list-table-body div (a list table whose header-rows defaults to 0) or a pipe table, and its attributes go on the <tbody>. q2 rejects both forms.

Repro:

::: {.list-table}
- - Fish
  - Ocean
- ::: {.list-table-body}
  - - Arctic char
    - Arctic
  :::
:::

Actual:

Warning: [Q-2-35] Invalid List-Table Structure
 6 │ ╭─▶ - ::: {.list-table-body}
 9 │ ├─▶   :::
   │ ╰─────────── row 3 in list-table must contain a bullet list of cells

A pipe table as a row gives the same warning when a blank line separates it from the closing :::. Without the blank line it is a parse error instead (#1333).

Expected, as in pandoc-ext/list-table: one <thead> with Fish and Ocean, then a second <tbody> holding the Arctic char row. The new body carries the attributes of the .list-table-body div.

主要言語
Rust
スター
316
フォーク
23
平均マージ
11時間 49分
マージ済み PR(30日)
245

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/q2 のほかの issue

quarto-dev/q2 の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。