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())