docling-project / docling-project/docling

Ordered lists in docx detected as unordered

Open
#1,755 1 comment 0 reactions 1 assignee Claimed by @maxmnemonic View on GitHub
bug
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
98

Description

### Bug
I have a docx file [elfa.docx](https://github.com/user-attachments/files/20692305/elfa.docx)
which has a test ordered list and and test unordered list. However both are parsed as unordered lists.

![Image](https://github.com/user-attachments/assets/07ffe43b-e8cb-4cd1-b024-d264b59a14ee)

### Steps to reproduce
`from docling.document_converter import DocumentConverter

source = "elfa.docx" # document per local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown()) # output: "## Docling Technical Report[...]"`

### Docling version
Docling version: 2.33.0
Docling Core version: 2.33.0
Docling IBM Models version: 3.4.4
Docling Parse version: 4.0.1
Python: cpython-311 (3.11.11)
Platform: Linux-5.15.0-94-generic-x86_64-with-glibc2.35

### Python version
Python 3.11.11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.