fix: keep a table cell's line breaks inside its row when converting to Markdown (#31539)

This commit is contained in:
G30 authored and GitHub committed 2026-09-30 19:25:38 +04:00
1 parent 4987711391
commit 8600ab9fa7
1 file changed
+1
@@ -78,6 +78,7 @@
let cellContent = turndownService.turndown(cell.innerHTML).trim();
// Remove extra paragraph tags that might be added
cellContent = cellContent.replace(/^\n+|\n+$/g, '');
cellContent = cellContent.replace(/\n/g, '<br>');
return cellContent;
});