Skip to content

Generate valid HTML by avoiding double <thead>s#1237

Merged
rich-iannone merged 5 commits intomasterfrom
singular-thead
Mar 3, 2023
Merged

Generate valid HTML by avoiding double <thead>s#1237
rich-iannone merged 5 commits intomasterfrom
singular-thead

Conversation

@rich-iannone
Copy link
Copy Markdown
Member

This PR rewrites the codepath that generates the table's header section and column/spanner labels. Previously, two <thead> elements might be created if both a title/subtitle was provided and column labels were not hidden from printing (through a tab_options() option). Here were correct this by unifying all of that under a single <thead> element. This was a major problem with Quarto/Pandoc but the fixes here make the HTML table parseable.

Fixes: #1235

@rich-iannone rich-iannone marked this pull request as ready for review March 3, 2023 07:16
@rich-iannone rich-iannone merged commit 0e7a4a4 into master Mar 3, 2023
@rich-iannone rich-iannone deleted the singular-thead branch March 3, 2023 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using a heading with tab_header() causes an HTML table to not render correctly in Quarto (v1.3+)

1 participant