From 2f85aef13696b0fcf9c58456e2f0b721df2625d6 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 9 Nov 2025 16:28:21 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 2 -- client/ui/chat/Message.tsx | 1 - 2 files changed, 3 deletions(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index d13c85d..985217e 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -61,11 +61,9 @@ const sanitizeConfig = { const markedInstance = new marked.Marked({ renderer: { text({ text }) { - console.log('普通文字', text) return `${escapeHTML(text)}` }, em({ text }) { - console.log('斜体', text) return `${escapeHTML(text)}` }, heading({ tokens, depth: _depth }) { diff --git a/client/ui/chat/Message.tsx b/client/ui/chat/Message.tsx index 8100b7d..939a9bc 100644 --- a/client/ui/chat/Message.tsx +++ b/client/ui/chat/Message.tsx @@ -37,7 +37,6 @@ function prettyFlatParsedMessage(html: string) { } } for (const e of elements) { - console.log(e) // 当出现非文本元素时, 将文本聚合在一起 // 如果是其他类型, 虽然也执行聚合, 但是不会有外层包裹 checkContinuousElement(e.nodeName.toLowerCase())