Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rich-iannone opened this issue Mar 2, 2023 · 0 comments · Fixed by #1237

Comments

@rich-iannone
Copy link
Member

As originally reported in quarto-dev/quarto-cli#4603, HTML-based gt tables with a heading (i.e., those produced through tab_header()) produce invalid HTML (two <thead> elements) which is understandably not parsed correctly by Pandoc (though browsers are okay with this markup).

To solve this, there should only be a single <thead> element. So, the heading (if present) should reside in the same element as the column labels (if they are to be displayed). The CSS classes will move to the child <tr> elements. This needs to be tested well to avoid any major regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment