fix: Remove video tags during AI conversation voice playback (#4562)

This commit is contained in:
shaohuzhang1 2025-12-25 10:50:48 +08:00 committed by GitHub
parent 4ffdb46b0a
commit 71c63adb0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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