diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 92b3f9280..4b8978422 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -484,7 +484,7 @@ async function processTtsQueue() { } // Remove embedded images - text = text.replace(/!\[alt-text]\([^)]*\)/g, ' '); + text = text.replace(/!\[.*?]\([^)]*\)/g, ''); if (typeof ttsProvider?.processText === 'function') { text = await ttsProvider.processText(text);