Fix table content loss in markdown serialization

This commit is contained in:
Yuri Karamian
2026-06-19 14:26:00 +02:00
parent ca7f25003c
commit ab759a006d
+5 -1
View File
@@ -2679,7 +2679,11 @@
const cells: string[] = [];
row.forEach((cell: any) => {
if (cell.type.name === 'tableHeader') hasHeader = true;
cells.push(serializeInline(cell).replace(/\|/g, '\\|').replace(/\n/g, ' '));
const cellText: string[] = [];
cell.forEach((p: any) => {
cellText.push(serializeInline(p));
});
cells.push(cellText.join(' ').replace(/\|/g, '\\|').replace(/\n/g, ' '));
});
rows.push(cells);
});