Skip to content

Commit 05a3cc4

Browse files
authored
Merge pull request #806 from mathjax/fix-invisibles
Make U+2061 through U+2064 have TeX class NONE so they don't affect spacing.
2 parents d74f383 + 8290e38 commit 05a3cc4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

ts/core/MmlTree/OperatorDictionary.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const MO = {
5252
ORD21: OPDEF(2, 1, TEXCLASS.ORD),
5353
ORD02: OPDEF(0, 2, TEXCLASS.ORD),
5454
ORD55: OPDEF(5, 5, TEXCLASS.ORD),
55+
NONE: OPDEF(0, 0, TEXCLASS.NONE),
5556
OP: OPDEF(1, 2, TEXCLASS.OP, {largeop: true, movablelimits: true, symmetric: true}),
5657
OPFIXED: OPDEF(1, 2, TEXCLASS.OP, {largeop: true, movablelimits: true}),
5758
INTEGRAL: OPDEF(0, 1, TEXCLASS.OP, {largeop: true, symmetric: true}),
@@ -456,10 +457,10 @@ export const OPTABLE: {[form: string]: OperatorList} = {
456457
'\u2026': MO.INNER, // horizontal ellipsis
457458
'\u2043': MO.BIN4, // hyphen bullet
458459
'\u2044': MO.TALLBIN, // fraction slash
459-
'\u2061': MO.ORD, // function application
460-
'\u2062': MO.ORD, // invisible times
461-
'\u2063': [0, 0, TEXCLASS.ORD, {linebreakstyle: 'after', separator: true}], // invisible separator
462-
'\u2064': MO.ORD, // invisible plus
460+
'\u2061': MO.NONE, // function application
461+
'\u2062': MO.NONE, // invisible times
462+
'\u2063': [0, 0, TEXCLASS.NONE, {linebreakstyle: 'after', separator: true}], // invisible separator
463+
'\u2064': MO.NONE, // invisible plus
463464
'\u20D7': MO.ACCENT, // \vec
464465
'\u2111': MO.ORD, // \Im
465466
'\u2113': MO.ORD, // \ell

0 commit comments

Comments
 (0)