We have Aspose.Total license and we are using Aspose v21.7.0 for converting HTML to Word and PDF document.
In the Html we have H3 tags for which we add class=“some-class-name” property in html. If their is no such class defined in CSS, then the default style is applied to H3 tag which is fine.
But if CSS class is defined in the styles section and that class is applied to H3 element, then, in the generated word document, that element is not rendered as an header tag. Instead it is rendered as a normal text with the styles applied.
But when the html contains style=“some styles here” it is working as expected.
In short, when css class is applied to H3 element, it looks fine as expected, but it is no more rendered as a header.
Please find the sample HTML which can be used to reproduce the issue: H3 Header Issue.zip (1.3 KB)