From fe468eca3ef26149bf9979c5385b81ee4408b5f9 Mon Sep 17 00:00:00 2001 From: DCloud__JSON Date: Mon, 8 May 2023 16:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=20=E6=B8=B2=E6=9F=93Markdown=20?= =?UTF-8?q?=E4=BC=9A=E5=87=BA=E7=8E=B0=E5=A4=9A=E4=BD=99=E7=9A=84|=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/uni-ai-msg/uni-ai-msg.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/uni-ai-msg/uni-ai-msg.vue b/components/uni-ai-msg/uni-ai-msg.vue index 80c0b7a..9a58959 100644 --- a/components/uni-ai-msg/uni-ai-msg.vue +++ b/components/uni-ai-msg/uni-ai-msg.vue @@ -91,8 +91,11 @@ }, computed: { html() { - let html = markdownIt.render(this.md + '|') - return html + if(this.md.split("```").length%2){ + return markdownIt.render(this.md + ' |'); + }else{ + return markdownIt.render(this.md) + ' |'; + } }, nodes() { return this.html -- GitLab