mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 02:57:57 -05:00
fix: keep a table cell's line breaks inside its row when converting to Markdown (#31539)
This commit is contained in:
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;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user