File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -462,19 +462,16 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
462
462
} ,
463
463
464
464
/*
465
- * Set the initial <mo> to have form="infix",
466
- * skipping any initial space or empty braces (TeXAtom with child
467
- * being an empty inferred row).
465
+ * If the initial child, skipping any initial space or
466
+ * empty braces (TeXAtom with child being an empty inferred row),
467
+ * is an <mo>, preceed it by an empty <mi> to force the <mo> to
468
+ * be infix.
468
469
*/
469
470
fixInitialMO : function ( data ) {
470
471
for ( var i = 0 , m = data . length ; i < m ; i ++ ) {
471
472
if ( data [ i ] && ( data [ i ] . type !== "mspace" &&
472
473
( data [ i ] . type !== "texatom" || ( data [ i ] . data [ 0 ] && data [ i ] . data [ 0 ] . data . length ) ) ) ) {
473
- if ( data [ i ] . isEmbellished ( ) ) {
474
- var core = data [ i ] . CoreMO ( ) ;
475
- core . form = MML . FORM . INFIX ;
476
- core . useMMLspacing |= core . SPACE_ATTR . form ; // use MathML space for this
477
- }
474
+ if ( data [ i ] . isEmbellished ( ) ) data . unshift ( MML . mi ( ) ) ;
478
475
break ;
479
476
}
480
477
}
You can’t perform that action at this time.
0 commit comments