Skip to content

Commit

Permalink
Don't insert <mi/> on right-aligned columns. (mathjax/MathJax#3089)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Aug 25, 2023
1 parent a662fa7 commit 37ad627
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 37ad627

Please sign in to comment.