File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 794
794
} ,
795
795
796
796
getJaxFromMath : function ( math ) {
797
- if ( math . parentNode . className === " MathJax_Display" ) { math = math . parentNode }
797
+ if ( math . parentNode . className . match ( / M a t h J a x _ D i s p l a y / ) ) { math = math . parentNode }
798
798
do { math = math . nextSibling } while ( math && math . nodeName . toLowerCase ( ) !== "script" ) ;
799
799
return HUB . getJaxFor ( math ) ;
800
800
} ,
Original file line number Diff line number Diff line change 141
141
postTranslate : function ( state ) { } ,
142
142
143
143
getJaxFromMath : function ( math ) {
144
- if ( math . parentNode . className === " MathJax_PlainSource_Display" ) math = math . parentNode ;
144
+ if ( math . parentNode . className . match ( / M a t h J a x _ P l a i n S o u r c e _ D i s p l a y / ) ) math = math . parentNode ;
145
145
do { math = math . nextSibling } while ( math && math . nodeName . toLowerCase ( ) !== "script" ) ;
146
146
return HUB . getJaxFor ( math ) ;
147
147
} ,
Original file line number Diff line number Diff line change 276
276
} ,
277
277
278
278
getJaxFromMath : function ( math ) {
279
- if ( math . parentNode . className === " MathJax_PHTML_Display" ) { math = math . parentNode }
279
+ if ( math . parentNode . className . match ( / M a t h J a x _ P H T M L _ D i s p l a y / ) ) { math = math . parentNode }
280
280
do { math = math . nextSibling } while ( math && math . nodeName . toLowerCase ( ) !== "script" ) ;
281
281
return HUB . getJaxFor ( math ) ;
282
282
} ,
Original file line number Diff line number Diff line change 413
413
} ,
414
414
415
415
getJaxFromMath : function ( math ) {
416
- if ( math . parentNode . className === " MathJax_SVG_Display" ) { math = math . parentNode }
416
+ if ( math . parentNode . className . match ( / M a t h J a x _ S V G _ D i s p l a y / ) ) { math = math . parentNode }
417
417
do { math = math . nextSibling } while ( math && math . nodeName . toLowerCase ( ) !== "script" ) ;
418
418
return HUB . getJaxFor ( math ) ;
419
419
} ,
You can’t perform that action at this time.
0 commit comments