Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: correct logical condition for handling same-level list items in docx_converter

myhloliee218993cac4
diff --git a/mineru/model/docx/docx_converter.py b/mineru/model/docx/docx_converter.py
index e0d86ae0..eebdf284 100644
--- a/mineru/model/docx/docx_converter.py
+++ b/mineru/model/docx/docx_converter.py
@@ -1980,7 +1980,7 @@ class DocxConverter:
self.pre_ilevel = ilevel
# 情况 4: 同级列表项(相同缩进)
- elif self.pre_num_id == numid or self.pre_ilevel == ilevel:
+ elif self.pre_num_id == numid and self.pre_ilevel == ilevel:
# 获取栈顶的列表块
list_block = self.list_block_stack[-1]