Skip to content

Commit

Permalink
Make mspace elements have TEXCLASS.NONE and be ignored in the inter-e…
Browse files Browse the repository at this point in the history
…lement spacing computations. (mathjax/MathJax#2576)
  • Loading branch information
dpvc committed Dec 3, 2020
1 parent fbd71f3 commit b02a99d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ts/core/MmlTree/MmlNodes/mspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

import {PropertyList} from '../../Tree/Node.js';
import {AbstractMmlTokenNode, TEXCLASS} from '../MmlNode.js';
import {MmlNode, AbstractMmlTokenNode, TEXCLASS} from '../MmlNode.js';

/*****************************************************************/
/**
Expand All @@ -45,7 +45,14 @@ export class MmlMspace extends AbstractMmlTokenNode {
/**
* TeX class is ORD
*/
public texClass = TEXCLASS.ORD;
public texClass = TEXCLASS.NONE;

/**
* @override
*/
public setTeXclass(prev: MmlNode): MmlNode {
return prev;
}

/**
* @override
Expand Down

0 comments on commit b02a99d

Please sign in to comment.