From 0e4d41ed6f66a1a41d353f484ade1d0aa5f83c6a Mon Sep 17 00:00:00 2001 From: NightStar Date: Fri, 14 Aug 2026 10:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A3=9E=E4=B9=A6=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E5=BA=93=E8=AF=BB=E5=86=99=E5=B7=A5=E5=85=B7=E9=9B=86=EF=BC=9A?= =?UTF-8?q?=E6=97=A9=E6=8A=A5/=E6=80=BB=E7=BB=93/=E8=B8=A9=E5=9D=91?= =?UTF-8?q?=E5=86=99=E5=85=A5=20+=20Markdown=20=E8=BD=AC=20docx=EF=BC=88?= =?UTF-8?q?=E5=90=AB=E5=BC=95=E7=94=A8=E5=9D=97=E6=94=AF=E6=8C=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/md_to_blocks.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/md_to_blocks.py b/scripts/md_to_blocks.py index 640f563..5d66091 100644 --- a/scripts/md_to_blocks.py +++ b/scripts/md_to_blocks.py @@ -247,6 +247,19 @@ def md_to_blocks(md_text): i += 1 continue + # Quote + quote = re.match(r'^>\s?(.+)$', line) + if quote: + blocks.append({ + 'block_type': 15, + 'quote': { + 'elements': parse_inline(quote.group(1)), + 'style': {} + } + }) + i += 1 + continue + # Bullet list bullet = re.match(r'^[\-\*]\s+(.+)$', line) if bullet: