fix: When voice playback is turned on, if the answer contains a link, there will be the following abnormal message (#4488)

This commit is contained in:
shaohuzhang1 2025-12-10 16:54:36 +08:00 committed by GitHub
parent 11a894f871
commit cb977a71ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,6 +178,8 @@ function markdownToPlainText(md: string) {
.replace(/`(.*?)`/g, '$1')
// ```code```
.replace(/```[\s\S]*?```/g, '')
// html
.replace(/<[^>]+>/g, '')
//
.replace(/\n{2,}/g, '\n')
.trim()