mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: keep a table cell's line breaks inside its row when converting to Markdown (#31539)
This commit is contained in:
parent
4987711391
commit
8600ab9fa7
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue