From e5cae2491f42ff13d26af65c3acf525524dfcc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=A8=E8=B6=8A=E6=99=A8=E6=98=8F?= <91008228+CrossDark@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:36:08 +0800 Subject: [PATCH] Update CrossDown.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新了段落处理 --- CrossDown.py | 1 + 1 file changed, 1 insertion(+) diff --git a/CrossDown.py b/CrossDown.py index c8e14bd..c471501 100644 --- a/CrossDown.py +++ b/CrossDown.py @@ -176,6 +176,7 @@ class CodeBlock: class Basic: @staticmethod def paragraph(text: str): + text = '\n'.join(['-' + line + '-' for line in original_string.splitlines()]) return re.sub(r'(<.+?>.*?<.+?>)\n', r'

\1

\n', text)