Subscript brackets in Word come out with asymmetric formatting in HTML
In Word, a math expression has a subscript "[n]" where the n is italic and the square brackets are not italic. In HTML starting from step 12 of the pipeline, I see the following:
- If a variable name to the immediate left of the subscript is not italic, then the left bracket is (correctly) not italic but the right bracket is italic. Both brackets are subscripted, which is correct.
- If a variable name to the immediate left of the subscript is italic, then the left bracket is italic and not subscripted. The right bracket is italic and (correctly) subscripted.
I'm attaching a .docx file that reproduces the problem, as well as my HTML outputs from steps 11 and 12 of the pipeline. The step 11 HTML looks as expected, while the step 12 HTML shows the incorrect formatting.