修复消息渲染并更新发布包
This commit is contained in:
@@ -9023,7 +9023,12 @@
|
||||
|
||||
function renderMarkdown(text) {
|
||||
if (!text) return '<div class="typing-indicator"><span></span><span></span><span></span></div>';
|
||||
try { return marked.parse(text); }
|
||||
try {
|
||||
const normalizedText = typeof window.ccNormalizeMarkdownText === 'function'
|
||||
? window.ccNormalizeMarkdownText(text)
|
||||
: text;
|
||||
return marked.parse(normalizedText);
|
||||
}
|
||||
catch { return escapeHtml(text); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user