Docs: list-table cell attributes (`colspan`, `rowspan`, `align`) are undocumented, and the Q-2-35 page contradicts them

Aperta Adatta ai principianti
#1,324 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
documentation

Direzione di ricerca

Inizia dalla guida Tables, che l'issue indica come ancora TBD, e dalla pagina Q-2-35, che dice che ogni riga deve avere lo stesso numero di celle. Aggiungi gli attributi di cella colspan, rowspan e align accanto agli attributi esistenti di list-table header-rows, aligns e widths, usando gli esempi di celle unite dell'issue. Riformula l'indicazione di Q-2-35 per consentire le celle unite. È completato quando entrambe le pagine descrivono le celle unite e la formulazione di Q-2-35 non è più in conflitto con esse.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Tested with q2 0.47.0 on Windows 11.

Merged cells in list tables work, following pandoc-ext/list-table: a cell that starts with an empty span takes that span's attributes.

::: {.list-table header-rows=1}
- - []{colspan=2} 2020
- - Number
  - Share
:::

This gives <th colspan="2"> in HTML and a Word merge (gridSpan) in docx. []{rowspan=2} (vMerge in docx) and []{align=r} work too. Since q2 rejects grid tables (Q-2-39), this is the only way to write a merged cell in qmd. The docs don't mention it:

  • The Tables guide is still "TBD".
  • The Q-2-35 page says "Use exactly the same number of cells in every row", which isn't true for rows with merged cells.

Request: document the cell attributes (colspan, rowspan, align) next to the list-table attributes (header-rows, aligns, widths), and reword the Q-2-35 advice to allow for merged cells.


The other items from earlier versions of this issue are split out:

  • #1333 Parse error: pipe table ending a list item inside a div, directly before the closing :::
  • #1334 List tables: multiple table bodies are rejected
  • #1335 List tables: header-cols is ignored
  • #1336 List tables: row attributes are rejected with Q-2-35
  • #1337 HTML: short table rows are not padded with empty cells
  • #1338 List tables: warn when a cell starts with a non-empty span carrying colspan/rowspan
  • #1339 Bare "Parse error" for unquoted attribute values containing a comma
  • #1327 and #879: HTML loses column alignment and widths
Lingua principale
Rust
Stelle
316
Fork
23
Merge medio
8h 19m
PR unite (30g)
244

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/q2

Tutte le issue di quarto-dev/q2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.