@@ -145,9 +145,6 @@ function ConfigureMathJax() {
145145 jax : [ "input/TeX" , "input/MathML" , "input/AsciiMath" , "output/SVG" , "output/CommonHTML" ] ,
146146 extensions : [ "toMathML.js" ] ,
147147 TeX : { extensions : window . Array ( "AMSmath.js" , "AMSsymbols.js" , "autoload-all.js" ) } ,
148- tex2jax : { inlineMath : [ [ '$' , '$' ] , [ '\\(' , '\\)' ] ] , preview :"none" } ,
149- mml2jax : { preview :"none" } ,
150- asciimath2jax : { preview :"none" } ,
151148 SVG : { useFontCache : true , useGlobalCache : false , EqnChunk : 1000000 , EqnDelay : 0 } ,
152149 CommonHTML : { EqnChunk : 1000000 , EqnDelay : 0 , undefinedFamily :"monospace" } ,
153150
@@ -473,7 +470,11 @@ function ConfigureMathJax() {
473470 }
474471 if ( MathJaxConfig ) {
475472 adjustArrays ( MathJaxConfig ) ;
476- Insert ( window . MathJax , MathJaxConfig ) ;
473+ // merge the defaults into the user configuration (to sanitize)
474+ window . MathJax = Insert ( Insert ( { } , MathJaxConfig ) , window . MathJax ) ;
475+ if ( MathJaxConfig . extensions ) {
476+ window . MathJax . extensions = window . MathJax . extensions . concat ( MathJaxConfig . extensions ) ;
477+ }
477478 }
478479}
479480
@@ -656,7 +657,7 @@ function StartQueue() {
656657
657658 //
658659 // Get the math data and callback
659- // and set the content with the proper delimiters
660+ // and set the content with the proper script type
660661 //
661662 var item = queue . shift ( ) ;
662663 data = item [ 0 ] ; callback = item [ 1 ] ;
@@ -696,7 +697,7 @@ function StartQueue() {
696697 timer = setTimeout ( RestartMathJax , data . timeout ) ;
697698 HUB . Queue (
698699 $$ ( SetRenderer , renderer ) ,
699- $$ ( "Typeset " , HUB ) ,
700+ $$ ( "Process " , HUB ) ,
700701 $$ ( TypesetDone , result ) ,
701702 $$ ( GetSpeech , result ) ,
702703 $$ ( GetMML , result ) ,
0 commit comments