You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding an id to a processed HTML table breaks span data-qmd #11460
bugSomething isn't workingtablesIssues with Tables including the gt integrationtriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.
To assign an id to a table, so that it can be referred to from elsewhere, if that table is defined in HTML code in a fenced code block ```{=html}, one can put the id on the table element using HTML syntax, <table id="tbl-xyz">.
Unfortunately, there seems to be a bug such that in that case all Markdown given via span data-qmd is ignored.
changed the title [-]I believe @friosavila refers to giving the table a label, so that it can be referred to from elsewhere. In a regular markdown table, that would be done by appending an id attribute to the caption, `: Quarto is great! {#tbl-xyz}`.[/-][+]Adding an id to a processed HTML table breaks span data-qmd[/+]on Nov 15, 2024
So we don't parse the table, meaning no quarto table processing happens, and specific span attributes are not handled (and other quarto table feature require processing are not applied either)
so that it can be referred to from elsewhere, if that table is defined in HTML code in a fenced code block {=html}
Current way of referencing a raw HTML table elsewhere is to used cross ref div syntax
bugSomething isn't workingtablesIssues with Tables including the gt integrationtriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.
Activity
[-]I believe @friosavila refers to giving the table a label, so that it can be referred to from elsewhere. In a regular markdown table, that would be done by appending an id attribute to the caption, `: Quarto is great! {#tbl-xyz}`.[/-][+]Adding an id to a processed HTML table breaks span data-qmd[/+]cderv commentedon Nov 18, 2024
We don't handle attributes on the start pattern for detecting HTML tables
quarto-cli/src/resources/filters/normalize/parsehtml.lua
Line 133 in 9204b9b
quarto-cli/src/resources/filters/modules/patterns.lua
Lines 11 to 14 in 9204b9b
quarto-cli/src/resources/filters/normalize/parsehtml.lua
Lines 140 to 146 in 9204b9b
So we don't parse the table, meaning no quarto table processing happens, and specific span attributes are not handled (and other quarto table feature require processing are not applied either)
Current way of referencing a raw HTML table elsewhere is to used cross ref div syntax