From ab759a006d786621c4ac2d9c9d47caa9a4af5f94 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Fri, 19 Jun 2026 14:26:00 +0200 Subject: [PATCH] Fix table content loss in markdown serialization --- src/lib/components/Editor.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 3b20913..f118f30 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -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); });