feat: 飞书知识库读写工具集:早报/总结/踩坑写入 + Markdown 转 docx(含引用块支持)

This commit is contained in:
NightStar
2026-08-14 10:28:49 +08:00
parent c4863de047
commit 0e4d41ed6f
+13
View File
@@ -247,6 +247,19 @@ def md_to_blocks(md_text):
i += 1 i += 1
continue 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 list
bullet = re.match(r'^[\-\*]\s+(.+)$', line) bullet = re.match(r'^[\-\*]\s+(.+)$', line)
if bullet: if bullet: