From ebe5f355d34ac8549728ddaea6ea3bb2fae19df8 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 5 Nov 2023 18:34:11 +0200 Subject: [PATCH] Fix formatting of hidden messages --- public/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/script.js b/public/script.js index 011409dba..7a2df6598 100644 --- a/public/script.js +++ b/public/script.js @@ -1274,6 +1274,11 @@ function messageFormatting(mes, ch_name, isSystem, isUser) { isSystem = false; } + // Let hidden messages have markdown + if (isSystem && ch_name !== systemUserName) { + isSystem = false; + } + // Prompt bias replacement should be applied on the raw message if (!power_user.show_user_prompt_bias && ch_name && !isUser && !isSystem) { mes = mes.replaceAll(substituteParams(power_user.user_prompt_bias), "");