List tables: `header-cols` is ignored
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- html, markdown, rust
- Domain
- documentation
Research direction
The list-table handling lives in the q2 Rust source, where header-rows is already consumed; start by finding that code and checking how header-cols is read from the attributes. Reproduce with the markdown block in the issue and compare the rendered <table> against the expected <th> in the first body column. Done when header-cols=1 gives a row head and the data-header-cols attribute no longer appears.
Written by the indexing model from the issue text.
Description
Tested with q2 0.47.0 on Windows 11.
In pandoc-ext/list-table, header-cols=N (default 0) makes the first N columns of the table body row heads, which HTML renders as <th>. q2 handles header-rows, but ignores header-cols and passes it through as an ordinary attribute.
Repro:
::: {.list-table header-cols=1}
- - Name
- Initial release
- - Markdown
- 2004
:::
Actual: <table class="caption-top table" data-header-cols="1">, and the body row is <td>Markdown</td><td>2004</td>.
Expected, as in pandoc-ext/list-table: the attribute is consumed, the table body gets 1 row-head column, and the row renders as <th>Markdown</th><td>2004</td>.
- Dominant language
- Rust
- Stars
- 316
- Forks
- 23
- Avg merge
- 8h 19m
- Merged PRs (30d)
- 244
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/q2
-
bug testing windows
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
quarto-dev/q2#1347 ·
Maintainers usually reply within 1 day
-
bug testing windows
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
quarto-dev/q2#1346 ·
Maintainers usually reply within 1 day
-
bug testing windows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
quarto-dev/q2#1344 ·
Maintainers usually reply within 1 day
-
bug testing windows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
quarto-dev/q2#1343 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
quarto-dev/q2#1324 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
renaming a provider to a taken name fails with a raw sql errorPossibly taken A pull request linked to this issue is open or already merged. Openarea:storage kind:bug priority:p3 ready
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
XLSX files cannot be imported into Adobe InDesign due to missing AppVersion in extended propertiesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
qingjian-team/qingjian#1181 ·
Maintainers usually reply within 2 days