mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Parse images sent by oobabooga plugin
This commit is contained in:
@ -869,6 +869,9 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
|
|||||||
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
.replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
|
||||||
.replace(/\n/g, "<br/>");
|
.replace(/\n/g, "<br/>");
|
||||||
} else if (!isSystem) {
|
} else if (!isSystem) {
|
||||||
|
const image = /<img src="(.*?)".*?alt="(.*?)".*?>/g;
|
||||||
|
mes = mes.replace(image, '');
|
||||||
|
|
||||||
mes = converter.makeHtml(mes);
|
mes = converter.makeHtml(mes);
|
||||||
//mes = mes.replace(/{.*}/g, "");
|
//mes = mes.replace(/{.*}/g, "");
|
||||||
mes = mes.replace(/{{(\*?.+?\*?)}}/g, "");
|
mes = mes.replace(/{{(\*?.+?\*?)}}/g, "");
|
||||||
|
Reference in New Issue
Block a user