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

Đang mở Phù hợp với người mới
#1,324 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
66/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả 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

Bắt đầu với hướng dẫn Tables, mà issue nói vẫn còn ở trạng thái TBD, và trang Q-2-35, trang yêu cầu mọi hàng phải có cùng số ô. Thêm các thuộc tính ô colspan, rowspan và align bên cạnh các thuộc tính list-table hiện có là header-rows, aligns và widths, dùng các ví dụ ô gộp trong issue. Viết lại hướng dẫn ở Q-2-35 để cho phép ô gộp. Hoàn thành khi cả hai trang đều mô tả ô gộp và cách diễn đạt ở Q-2-35 không còn mâu thuẫn với chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
316
Fork
23
Merge trung bình
8 giờ 19 phút
Pull request đã merge (30 ngày)
244

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/q2

Tất cả issue của quarto-dev/q2

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.