diff --git a/public/script.js b/public/script.js index 0266831a8..a8937495a 100644 --- a/public/script.js +++ b/public/script.js @@ -869,6 +869,9 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) { .replace(/\*\*(.+?)\*\*/g, "$1") .replace(/\n/g, "
"); } else if (!isSystem) { + const image = /<img src="(.*?)".*?alt="(.*?)".*?>/g; + mes = mes.replace(image, '![$2]($1)'); + mes = converter.makeHtml(mes); //mes = mes.replace(/{.*}/g, ""); mes = mes.replace(/{{(\*?.+?\*?)}}/g, "");