when mathml is converted to word using inserthtml(), “mtext” tag is missing in word.
@jaisurya Could you please provide your
mathml for testing? We will check the issue and provide you more information.
test.docx (11.9 KB)
@jaisurya Thank you for additional information, but I cannot reproduce the problem on my side using the latest 22.3 version of Aspose.Words. Here is code I used for testing:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.insertHtml("<math class=\"math\" xmlns=\"http://www.w3.org/1998/Math/MathML\"><mtext>-48</mtext></m:math>"); doc.save("C:\\Temp\\out.docx");
and here is the document generated on my side: out.docx (7.2 KB)
can you check this with aspose version 16.11.0
@jaisurya Yes, the problem is reproducible with old 16.11.0 version of Aspose.Words. Please note we do not provide support and fixes for old versions of Aspose.Words. To get the problem resolved you should update to the newer version of Aspose.Words.