From a331c333dde4e9c1c844c29d16ae91b03a873f87 Mon Sep 17 00:00:00 2001 From: wanglong001 Date: Mon, 17 Apr 2023 14:44:15 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20markdown=20=E8=A1=A8=E6=A0=BC=E5=86=85?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/components/Message/Text.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/chat/components/Message/Text.vue b/src/views/chat/components/Message/Text.vue index 95f8f41824..c9f969b835 100644 --- a/src/views/chat/components/Message/Text.vue +++ b/src/views/chat/components/Message/Text.vue @@ -22,6 +22,7 @@ const { isMobile } = useBasicLayout() const textRef = ref() const mdi = new MarkdownIt({ + html: true, linkify: true, highlight(code, language) { const validLang = !!(language && hljs.getLanguage(language))