Skip to content

Commit

Permalink
Merge pull request #996 from mathjax/issue3089
Browse files Browse the repository at this point in the history
Don't insert <mi/> on right-aligned columns.  (mathjax/MathJax#3089)
  • Loading branch information
dpvc authored Sep 15, 2023
2 parents be5a180 + 37ad627 commit 04fb966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/input/tex/base/BaseItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,9 @@ export class EqnArrayItem extends ArrayItem {
*/
public EndEntry() {
// @test Cubic Binomial
if (this.row.length) {
const calign = (this.arraydef.columnalign as string).split(/ /);
const align = this.row.length && calign.length ? calign[this.row.length % calign.length] : 'right';
if (align !== 'right') {
ParseUtil.fixInitialMO(this.factory.configuration, this.nodes);
}
super.EndEntry();
Expand Down

0 comments on commit 04fb966

Please sign in to comment.