fix: Remove video tags during AI conversation voice playback

This commit is contained in:
shaohuzhang1 2025-12-25 10:49:19 +08:00
parent 4ffdb46b0a
commit fe4004aa77

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, '')
//