mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Fix table content loss in markdown serialization
This commit is contained in:
@@ -2679,7 +2679,11 @@
|
|||||||
const cells: string[] = [];
|
const cells: string[] = [];
|
||||||
row.forEach((cell: any) => {
|
row.forEach((cell: any) => {
|
||||||
if (cell.type.name === 'tableHeader') hasHeader = true;
|
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);
|
rows.push(cells);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user