plutext / docx4j-ImportXHTML

Converts XHTML to OpenXML WordML (docx) using docx4j
136 stars 125 forks source link

"w:bookmarkEnd" initial(original) position loses after conversion docx->html->docx when it is not located directly after "w:bookmarkStart" #93

Open SergiiBuchatskyi opened 1 year ago

SergiiBuchatskyi commented 1 year ago

When the original "docx" looks like below:

BookmarkText then after conversion to html and back to the docx, "w:bookmarkEnd" loses its initial location (its new location is directly after "w:bookmarkStart") : BookmarkText