mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix/refac: tts remove formattings
This commit is contained in:
@@ -750,7 +750,6 @@ export const removeFormattings = (str: string) => {
|
||||
|
||||
// Cleanup
|
||||
.replace(/\[\^[^\]]*\]/g, '') // Footnotes
|
||||
.replace(/[-*_~]/g, '') // Remaining markers
|
||||
.replace(/\n{2,}/g, '\n')
|
||||
); // Multiple newlines
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user