File tree Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2306,7 +2306,10 @@ MathJax.Hub = {
2306
2306
result = MathJax . OutputJax [ jax . outputJax ] . Process ( script , state ) ;
2307
2307
if ( result !== false ) {
2308
2308
script . MathJax . state = STATE . PROCESSED ;
2309
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
2309
+ if ( script . MathJax . preview ) {
2310
+ script . MathJax . preview . innerHTML = "" ;
2311
+ script . MathJax . preview . style . display = "none" ;
2312
+ }
2310
2313
//
2311
2314
// Signal that new math is available
2312
2315
//
@@ -2390,7 +2393,10 @@ MathJax.Hub = {
2390
2393
var node = document . getElementById ( error . id ) ;
2391
2394
if ( node ) node . parentNode . removeChild ( node ) ;
2392
2395
if ( script . parentNode ) script . parentNode . insertBefore ( error , script ) ;
2393
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
2396
+ if ( script . MathJax . preview ) {
2397
+ script . MathJax . preview . innerHTML = "" ;
2398
+ script . MathJax . preview . style . display = "none" ;
2399
+ }
2394
2400
//
2395
2401
// Save the error for debugging purposes
2396
2402
// Report the error as a signal
Original file line number Diff line number Diff line change 603
603
//
604
604
if ( data . preview ) {
605
605
data . preview . innerHTML = "" ;
606
+ data . preview . style . display = "none" ;
606
607
script . MathJax . preview = data . preview ;
607
608
delete data . preview ;
608
609
}
Original file line number Diff line number Diff line change 765
765
if ( script && script . parentNode && script . MathJax . elementJax ) {
766
766
var div = ( script . MathJax . elementJax . HTMLCSS || { } ) . div ;
767
767
if ( div ) { div . className = div . className . split ( / / ) [ 0 ] }
768
- if ( script . MathJax . preview ) { script . MathJax . preview . innerHTML = "" }
768
+ if ( script . MathJax . preview ) {
769
+ script . MathJax . preview . innerHTML = "" ;
770
+ script . MathJax . preview . style . display = "none" ;
771
+ }
769
772
}
770
773
}
771
774
//
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 386
386
//
387
387
if ( data . preview ) {
388
388
data . preview . innerHTML = "" ;
389
+ data . preview . style . display = "none" ;
389
390
script . MathJax . preview = data . preview ;
390
391
delete data . preview ;
391
392
}
You can’t perform that action at this time.
0 commit comments