File tree 5 files changed +15
-3
lines changed
5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2307,7 +2307,10 @@ MathJax.Hub = {
2307
2307
result = MathJax . OutputJax [ jax . outputJax ] . Process ( script , state ) ;
2308
2308
if ( result !== false ) {
2309
2309
script . MathJax . state = STATE . PROCESSED ;
2310
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
2310
+ if ( script . MathJax . preview ) {
2311
+ script . MathJax . preview . innerHTML = "" ;
2312
+ script . MathJax . preview . style . display = "none" ;
2313
+ }
2311
2314
//
2312
2315
// Signal that new math is available
2313
2316
//
@@ -2391,7 +2394,10 @@ MathJax.Hub = {
2391
2394
var node = document . getElementById ( error . id ) ;
2392
2395
if ( node ) node . parentNode . removeChild ( node ) ;
2393
2396
if ( script . parentNode ) script . parentNode . insertBefore ( error , script ) ;
2394
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
2397
+ if ( script . MathJax . preview ) {
2398
+ script . MathJax . preview . innerHTML = "" ;
2399
+ script . MathJax . preview . style . display = "none" ;
2400
+ }
2395
2401
//
2396
2402
// Save the error for debugging purposes
2397
2403
// Report the error as a signal
Original file line number Diff line number Diff line change 604
604
//
605
605
if ( data . preview ) {
606
606
data . preview . innerHTML = "" ;
607
+ data . preview . style . display = "none" ;
607
608
script . MathJax . preview = data . preview ;
608
609
delete data . preview ;
609
610
}
Original file line number Diff line number Diff line change 764
764
if ( script && script . parentNode && script . MathJax . elementJax ) {
765
765
var div = ( script . MathJax . elementJax . HTMLCSS || { } ) . div ;
766
766
if ( div ) { div . className = div . className . split ( / / ) [ 0 ] }
767
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
767
+ if ( script . MathJax . preview ) {
768
+ script . MathJax . preview . innerHTML = "" ;
769
+ script . MathJax . preview . style . display = "none" ;
770
+ }
768
771
}
769
772
}
770
773
//
Original file line number Diff line number Diff line change 268
268
//
269
269
if ( data . preview ) {
270
270
data . preview . innerHTML = "" ;
271
+ data . preview . style . display = "none" ;
271
272
script . MathJax . preview = data . preview ;
272
273
delete data . preview ;
273
274
}
Original file line number Diff line number Diff line change 395
395
//
396
396
if ( data . preview ) {
397
397
data . preview . innerHTML = "" ;
398
+ data . preview . style . display = "none" ;
398
399
script . MathJax . preview = data . preview ;
399
400
delete data . preview ;
400
401
}
You can’t perform that action at this time.
0 commit comments