From 274db466f2e350e5084ee6f660fd2bd755397154 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Mon, 15 Jul 2024 11:33:08 +0800 Subject: [PATCH] =?UTF-8?q?fixed=EF=BC=9AFixed=20an=20issue=20where=20the?= =?UTF-8?q?=20user=20was=20unable=20to=20enter=20non-MD=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/Widgets/MarkDown/index.vue | 20 ++++++++++++++++---- yarn.lock | 5 +++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0b846687e..a07e11f81 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "css-color-function": "^1.3.3", "decimal.js": "^10.4.3", "deepmerge": "^4.2.2", + "dompurify": "^3.1.6", "echarts": "4.7.0", "element-ui": "2.15.14", "eslint-plugin-html": "^6.0.0", diff --git a/src/components/Widgets/MarkDown/index.vue b/src/components/Widgets/MarkDown/index.vue index 09c8228f9..650307412 100644 --- a/src/components/Widgets/MarkDown/index.vue +++ b/src/components/Widgets/MarkDown/index.vue @@ -4,28 +4,29 @@
- +
- + - +