Skip to content

Commit 11c3570

Browse files
committed
fix:去除冗余代码
1 parent 03ffcbd commit 11c3570

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/chatPanel.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,6 @@ export class ChatPanel {
229229
],
230230
throwOnError: false
231231
});
232-
setTimeout(() => {
233-
renderMathInElement(targetDiv, {
234-
delimiters: [
235-
{ left: '$$', right: '$$', display: true },
236-
{ left: '$', right: '$', display: false },
237-
{ left: '\\[', right: '\\]', display: true },
238-
{ left: '\\(', right: '\\)', display: false }
239-
],
240-
throwOnError: false
241-
});
242-
hljs.highlightAll();
243-
}, 0);
244232
245233
// 重新高亮代码块
246234
hljs.highlightAll();

0 commit comments

Comments
 (0)