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

This commit is contained in:
G30 2026-09-30 11:25:38 -04:00 • committed by GitHub
parent 4987711391
commit 8600ab9fa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
});