diff --git a/server/utils/turndown/tables.ts b/server/utils/turndown/tables.ts index 4290418fc..7a38149d0 100644 --- a/server/utils/turndown/tables.ts +++ b/server/utils/turndown/tables.ts @@ -234,19 +234,7 @@ const nodeContains = (node: HTMLElement, types: string | string[]) => { }; const tableShouldBeHtml = (tableNode: HTMLElement) => - nodeContains(tableNode, "code") || - nodeContains(tableNode, [ - "UL", - "OL", - "H1", - "H2", - "H3", - "H4", - "H5", - "H6", - "HR", - "BLOCKQUOTE", - ]); + nodeContains(tableNode, ["code", "table"]); // Various conditions under which a table should be skipped - i.e. each cell // will be rendered one after the other as if they were paragraphs.