29
29
30
30
if ( document . getElementById && document . childNodes && document . createElement ) {
31
31
32
- if ( ! window . MathJax ) { window . MathJax = { } }
32
+ if ( window . MathJax ) { window . MathJax = { AuthorConfig : window . MathJax } } else { window . MathJax = { } }
33
33
if ( ! MathJax . Hub ) { // skip if already loaded
34
34
35
35
MathJax . version = "2.2" ;
@@ -2334,6 +2334,10 @@ MathJax.Hub.Startup = {
2334
2334
}
2335
2335
}
2336
2336
//
2337
+ // Perform author configuration from in-line MathJax = {...}
2338
+ //
2339
+ this . queue . Push ( [ "Config" , MathJax . Hub , MathJax . AuthorConfig ] ) ;
2340
+ //
2337
2341
// Run the deprecated configuration script, if any (ignoring return value)
2338
2342
// Wait for the startup delay signal
2339
2343
// Run the mathjax-config blocks
@@ -2357,7 +2361,7 @@ MathJax.Hub.Startup = {
2357
2361
return delay ;
2358
2362
} ,
2359
2363
//
2360
- // Run the scipts of type=text/x-mathajx -config
2364
+ // Run the scripts of type=text/x-mathjax -config
2361
2365
//
2362
2366
ConfigBlocks : function ( ) {
2363
2367
var scripts = document . getElementsByTagName ( "script" ) ;
@@ -3021,6 +3025,7 @@ MathJax.Hub.Startup = {
3021
3025
} ) ;
3022
3026
HUB . Browser . Select ( MathJax . Message . browsers ) ;
3023
3027
3028
+ if ( BASE . AuthorConfig && typeof BASE . AuthorConfig . AuthorInit === "function" ) { BASE . AuthorConfig . AuthorInit ( ) }
3024
3029
HUB . queue = BASE . Callback . Queue ( ) ;
3025
3030
HUB . queue . Push (
3026
3031
[ "Post" , STARTUP . signal , "Begin" ] ,
0 commit comments