From 0dae04f930427a728cecffa585884713755fac24 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 18 十一月 2024 11:29:48 +0800
Subject: [PATCH] 优化打包

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