From 226ce2bdedaca0abca5eb8014044a375932c3710 Mon Sep 17 00:00:00 2001 From: wanglong001 <406134592@qq.com> Date: Mon, 17 Apr 2023 21:10:36 +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=20(#1492)?= 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 95f8f41..c9f969b 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))