Skip to content

Commit

Permalink
Merge pull request #512 from mathjax/texclass-issues
Browse files Browse the repository at this point in the history
Fix problems with texClass
  • Loading branch information
dpvc authored Jun 8, 2020
2 parents 1ffcbfe + 6c266dd commit 8731785
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ts/core/MmlTree/MmlNodes/mo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ export class MmlMo extends AbstractMmlTokenNode {
let {form, fence} = this.attributes.getList('form', 'fence') as {form: string, fence: string};
if (this.getProperty('texClass') === undefined &&
(this.attributes.isSet('lspace') || this.attributes.isSet('rspace'))) {
this.texClass = TEXCLASS.NONE;
return null;
}
if (fence && this.texClass === TEXCLASS.REL) {
Expand Down
2 changes: 1 addition & 1 deletion ts/core/MmlTree/MmlNodes/mrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class MmlMrow extends AbstractMmlNode {
*/
public setTeXclass(prev: MmlNode) {
if ((this.getProperty('open') != null || this.getProperty('close') != null) &&
(!prev || prev.getProperty('fnOp') != null)) {
(!prev || prev.getProperty('fnOP') != null)) {
//
// <mrow> came from \left...\right
// so treat as subexpression (TeX class INNER).
Expand Down

0 comments on commit 8731785

Please sign in to comment.