From f63fb499b869d0f09ab8b27b4c6c6e63b94af5b7 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Fri, 30 Aug 2024 09:35:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=97=B6=E5=85=BC=E5=AE=B9=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=93=BE=E6=8E=A5=E6=80=A7=E8=B4=A8=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=88=96=E8=80=85=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dowmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dowmd.py b/dowmd.py index 3afe710..e50a26f 100644 --- a/dowmd.py +++ b/dowmd.py @@ -108,6 +108,6 @@ class dow_markdown(Plugin): return text def format_content(self, content): - content = re.sub(r"\!\[([^\]]*)\]\(([^)\\\s]+)\)", r"&分块&\2&分块&", content) + content = re.sub(r"\!\[([^\]]*)\]\(?([^)\\\s]+)\)?", r"&分块&\2&分块&", content) content = re.sub(r"\\n", "\n", content) return content