I have tried to convert from html to docx using Libreoffice using the following command…
soffice --headless --convert-to “docx:Office Open XML Text” ‘test.html’
test.html
<html>
<head>
</head>
<body>
<strong><em>Apply em then strong</em></strong>
<em><strong>Apply strong then em</strong></em>
</body>
</html>
When I am converting this test.html to docx then <strong><em>Apply em then strong</em></strong>
is only taking <em>
and <em><strong>Apply strong then em</strong></em>
is only taking <strong>
.
Is there any solution?