Converting docx to html, I have an ordered numbered list with upper roman numbers (I. II.) that is being converted to a bullet list (UL) in html.
Adding the below line I get the OL element but with the wrong format, as the list has arabic numbers (1. 2.)
SdtWriter.registerTagHandler("HTML_ELEMENT", new SdtToListSdtTagHandler());
If I also add the below line, the list is almost visually correct, as I see the enumeration with the upper roman numbers, although the font type is not the correct one, and the elements are not part of an OL, but instead just paragraphs:
htmlSettings.getFeatures().remove(ConversionFeatures.PP_HTML_COLLECT_LISTS);
None of this possibilities meet my needs, and I would like to know if this is the expected behavior or there is actually a way to properly transform a numbered list from docx to html maintaining the exact same style as a real OL html element. I can provide docx examples and code used if this is not the expected behavior.