I have a snippet of MATHML which was not rendered correctly in MS word. And my aspose words version is already the latest: 16.12.0.
<pre style=“font-family: “DejaVu Sans Mono”; font-size: 12pt;”>Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertHtml(
“\n” + “\t\n” + “\t\t\n” + “\t\t\t\n” + “\t\t\t\t\n”
+ “\t\t\t\t\tssss\n” + “\t\t\t\t\t2\n” + “\t\t\t\t\n”
+ “\t\t\t\n” + “\t\t\t\n” + “\t\t\t\t12\n” + “\t\t\t\n”
+ “\t\t\n” + “\t\t−\n” + “\t\t\n” + “\t\t\t\n”
+ “\t\t\t\t\n” + “\t\t\t\t\tx\n” + “\t\t\t\t\t2\n”
+ “\t\t\t\t\n” + “\t\t\t\n” + “\t\t\t\n”
+ “\t\t\t\t24\n” + “\t\t\t\n” + “\t\t\n”
+ “\t\t=\n” + “\t\t1\n” + “\t\n” + “”);
builder.writeln();
String savePath = “D:\test.docx”;
doc.save(savePath);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertHtml(
“\n” + “\t\n” + “\t\t\n” + “\t\t\t\n” + “\t\t\t\t\n”
+ “\t\t\t\t\tssss\n” + “\t\t\t\t\t2\n” + “\t\t\t\t\n”
+ “\t\t\t\n” + “\t\t\t\n” + “\t\t\t\t12\n” + “\t\t\t\n”
+ “\t\t\n” + “\t\t−\n” + “\t\t\n” + “\t\t\t\n”
+ “\t\t\t\t\n” + “\t\t\t\t\tx\n” + “\t\t\t\t\t2\n”
+ “\t\t\t\t\n” + “\t\t\t\n” + “\t\t\t\n”
+ “\t\t\t\t24\n” + “\t\t\t\n” + “\t\t\n”
+ “\t\t=\n” + “\t\t1\n” + “\t\n” + “”);
builder.writeln();
String savePath = “D:\test.docx”;
doc.save(savePath);