chore: 删除调试代码
This commit is contained in:
@@ -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 }) {
|
||||||
|
|||||||
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user