From 8812daeeee8c9fd2dcd568bc1eb2a2e03af7857d Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Fri, 27 Dec 2024 11:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=90=E4=BA=9B=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=8C=85=E5=90=AB=20sub=20=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20#545?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/pages/home/Markdown/Markdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/pages/home/Markdown/Markdown.tsx b/src/renderer/src/pages/home/Markdown/Markdown.tsx index 843e96c9..5a61a922 100644 --- a/src/renderer/src/pages/home/Markdown/Markdown.tsx +++ b/src/renderer/src/pages/home/Markdown/Markdown.tsx @@ -19,7 +19,7 @@ import ImagePreview from './ImagePreview' import Link from './Link' const ALLOWED_ELEMENTS = - /<(style|p|div|span|b|i|strong|em|ul|ol|li|table|tr|td|th|thead|tbody|h[1-6]|blockquote|pre|code|br|hr|svg|path|circle|rect|line|polyline|polygon|text|g|defs|title|desc|tspan)/i + /<(style|p|div|span|b|i|strong|em|ul|ol|li|table|tr|td|th|thead|tbody|h[1-6]|blockquote|pre|code|br|hr|svg|path|circle|rect|line|polyline|polygon|text|g|defs|title|desc|tspan|sub|sup)/i interface Props { message: Message