From a61bd8abfb6bedacccbc1f1cdb01e4f433e58fd7 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 24 二月 2025 11:32:15 +0800 Subject: [PATCH] start bug;重复导入文件bug --- src/components/chat/libs/markdown.ts | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/chat/libs/markdown.ts b/src/components/chat/libs/markdown.ts index 0a002fe..3c75cb9 100644 --- a/src/components/chat/libs/markdown.ts +++ b/src/components/chat/libs/markdown.ts @@ -1,4 +1,4 @@ -import highlight from 'highlight.js'; +// import highlight from 'highlight.js'; import Markdown from 'markdown-it'; const mdOptions: Markdown.Options = { @@ -7,15 +7,15 @@ breaks: true, langPrefix: 'language-', // 浠g爜楂樹寒 - highlight(str, lang) { - if (lang && highlight.getLanguage(lang)) { - try { - return '<pre class="hljs"><code>' + highlight.highlight(lang, str, true).value + '</code></pre>'; - } catch (__) { - } - } - return ''; - }, + // highlight(str, lang) { + // if (lang && highlight.getLanguage(lang)) { + // try { + // return '<pre class="hljs"><code>' + highlight.highlight(lang, str, true).value + '</code></pre>'; + // } catch (__) { + // } + // } + // return ''; + // }, }; export const md = new Markdown(mdOptions); -- Gitblit v1.9.3