Skip to content

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

fix: adjust title block level in DocxConverter for correct hierarchy

myhloli4bcf377669f3
diff --git a/mineru/model/docx/docx_converter.py b/mineru/model/docx/docx_converter.py
index b7c1a10b..19802bf5 100644
--- a/mineru/model/docx/docx_converter.py
+++ b/mineru/model/docx/docx_converter.py
@@ -819,7 +819,7 @@ class DocxConverter:
if content_text:
title_block = {
"type": BlockType.TITLE,
- "level": ilevel + 2,
+ "level": ilevel + 1,
"is_numbered_style": is_numbered,
"content": content_text,
}