Skip to content

Commit c9b7775

Browse files
committed
table,html - postprocess gt tables correctly
1 parent b278972 commit c9b7775

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/format/html/format-html.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -817,15 +817,15 @@ function htmlFormatPostprocessor(
817817

818818
// Process tables to restore th-vs-td markers
819819
const tables = doc.querySelectorAll(
820-
'table[data-quarto-postprocess-tables="true"]',
820+
'table[data-quarto-postprocess="true"]',
821821
);
822-
823822
for (let i = 0; i < tables.length; ++i) {
824823
const table = tables[i] as Element;
825-
if (table.getAttribute("data-quarto-disable-processing")) {
824+
if (table.getAttribute("data-quarto-disable-processing") === "true") {
826825
continue;
827826
}
828-
table.removeAttribute("data-quarto-postprocess-tables");
827+
table.removeAttribute("data-quarto-postprocess");
828+
table.removeAttribute("data-quarto-disable-processing");
829829
table.querySelectorAll("tr").forEach((tr) => {
830830
const { children } = tr as Element;
831831
for (let j = 0; j < children.length; ++j) {

0 commit comments

Comments
 (0)