chore: 删除调试代码

This commit is contained in:
CrescentLeaf
2025-11-09 16:28:21 +08:00
parent b4d63a709b
commit 2f85aef136
2 changed files with 0 additions and 3 deletions

View File

@@ -61,11 +61,9 @@ const sanitizeConfig = {
const markedInstance = new marked.Marked({ const markedInstance = new marked.Marked({
renderer: { renderer: {
text({ text }) { text({ text }) {
console.log('普通文字', text)
return `<chat-text>${escapeHTML(text)}</chat-text>` return `<chat-text>${escapeHTML(text)}</chat-text>`
}, },
em({ text }) { em({ text }) {
console.log('斜体', text)
return `<chat-text em="true">${escapeHTML(text)}</chat-text>` return `<chat-text em="true">${escapeHTML(text)}</chat-text>`
}, },
heading({ tokens, depth: _depth }) { heading({ tokens, depth: _depth }) {

View File

@@ -37,7 +37,6 @@ function prettyFlatParsedMessage(html: string) {
} }
} }
for (const e of elements) { for (const e of elements) {
console.log(e)
// 当出现非文本元素时, 将文本聚合在一起 // 当出现非文本元素时, 将文本聚合在一起
// 如果是其他类型, 虽然也执行聚合, 但是不会有外层包裹 // 如果是其他类型, 虽然也执行聚合, 但是不会有外层包裹
checkContinuousElement(e.nodeName.toLowerCase()) checkContinuousElement(e.nodeName.toLowerCase())