Add files via upload
This commit is contained in:
@@ -858,7 +858,7 @@ function renderContent(text) {
|
||||
if (!text) return '';
|
||||
let html = String(text).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
||||
|
||||
html = html.replace(/\[(?:image|图片)\s*:\s*([^\]]+)\]/gi, (_, inner) => {
|
||||
html = html.replace(/\[(?:img|图片)\s*:\s*([^\]]+)\]/gi, (_, inner) => {
|
||||
const tags = parseImageToken(inner);
|
||||
if (!tags) return _;
|
||||
return `<div class="fw-img-slot" data-raw="${encodeURIComponent(inner)}"></div>`;
|
||||
@@ -900,6 +900,7 @@ function renderContent(text) {
|
||||
return html;
|
||||
}
|
||||
|
||||
|
||||
function renderMessages() {
|
||||
const container = document.getElementById('messages');
|
||||
const { history, isStreaming, editingIndex } = state;
|
||||
|
||||
Reference in New Issue
Block a user