mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix
This commit is contained in:
@@ -449,11 +449,16 @@
|
|||||||
$('#chat').html('');
|
$('#chat').html('');
|
||||||
}
|
}
|
||||||
function messageFormating(mes, ch_name){
|
function messageFormating(mes, ch_name){
|
||||||
if(this_chid != undefined) mes = mes.replaceAll("<", "<").replaceAll(">", ">");
|
if(this_chid != undefined) mes = mes.replaceAll("<", "<").replaceAll(">", ">");//for Chloe
|
||||||
//mes = mes.replace(/\*\*(.+?)\*\*/g, '<b>$1</b>').replace(/\*(.+?)\*/g, '<i>$1</i>').replace(/\n/g, '<br/>');
|
if(this_chid === undefined){
|
||||||
|
mes = mes.replace(/\*\*(.+?)\*\*/g, '<b>$1</b>').replace(/\*(.+?)\*/g, '<i>$1</i>').replace(/\n/g, '<br/>');
|
||||||
|
|
||||||
|
}else{
|
||||||
|
mes = converter.makeHtml(mes);
|
||||||
|
mes = mes.replace(/\n/g, '<br/>');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
mes = converter.makeHtml(mes);
|
|
||||||
mes = mes.replace(/\n/g, '<br/>');
|
|
||||||
if(ch_name !== name1){
|
if(ch_name !== name1){
|
||||||
mes = mes.replaceAll(name2+":", "");
|
mes = mes.replaceAll(name2+":", "");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user