mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Improve tilde code blocks in message formatting and TTS processing
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user