Improve tilde code blocks in message formatting and TTS processing

This commit is contained in:
Cohee
2025-03-30 13:25:15 +03:00
parent 60603a008c
commit 65a6e428d1
2 changed files with 3 additions and 2 deletions

View File

@@ -471,6 +471,7 @@ async function processTtsQueue() {
if (extension_settings.tts.skip_codeblocks) {
text = text.replace(/^\s{4}.*$/gm, '').trim();
text = text.replace(/```.*?```/gs, '').trim();
text = text.replace(/~~~.*?~~~/gs, '').trim();
}
if (extension_settings.tts.skip_tags) {