java-mammoth icon indicating copy to clipboard operation
java-mammoth copied to clipboard

The numbering of the ordered list is reset when some text is found between list items.

Open DunaMariusCosmin opened this issue 3 years ago • 0 comments

I have the following Word document: list-2.docx: image

When I convert it to HTML I obtain this structure: <ol> <li>LI1</li> </ol> <p>Content</p> <ol> <li>Li2</li> </ol>

I expected to have only one list and the "Content" paragraph to be included in the first list item.

I have the same problem if I have an image between list items: list-1.docx

DunaMariusCosmin avatar Sep 09 '22 11:09 DunaMariusCosmin