Update public/scripts/extensions/tts/index.js Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
Signed| @@ -484,7 +484,7 @@ async function processTtsQueue() { | |||
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | // Remove embedded images | 486 | // Remove embedded images |
| 487 | text = text.replace(/!\[alt-text]\([^)]*\)/g, ' '); | 487 | text = text.replace(/!\[.*?]\([^)]*\)/g, ''); |
| 488 | 488 | ||
| 489 | if (typeof ttsProvider?.processText === 'function') { | 489 | if (typeof ttsProvider?.processText === 'function') { |
| 490 | text = await ttsProvider.processText(text); | 490 | text = await ttsProvider.processText(text); |