@@ -563,6 +563,7 @@ function GetSpeech(result) {
563563// Create HTML and CSS output, if requested
564564//
565565function GetHTML ( result ) {
566+ if ( data . css ) result . css = CHTMLSTYLES ;
566567 if ( ! data . html && ! data . htmlNode ) return ;
567568 var jax = MathJax . Hub . getAllJax ( ) [ 0 ] ; if ( ! jax ) return ;
568569 var script = jax . SourceElement ( ) , html = script . previousSibling ;
@@ -591,7 +592,6 @@ function GetHTML(result) {
591592 }
592593 if ( data . html ) result . html = html . outerHTML ;
593594 if ( data . htmlNode ) result . htmlNode = html ;
594- if ( data . css ) result . css = CHTMLSTYLES ;
595595}
596596
597597//
@@ -684,7 +684,7 @@ function StartQueue() {
684684 //
685685 GetState ( data . state ) ;
686686
687- var renderer = ( ( data . html || data . htmlNode ) ? "CommonHTML" : "SVG" ) ;
687+ var renderer = ( ( data . html || data . htmlNode || data . css ) ? "CommonHTML" : "SVG" ) ;
688688
689689 //
690690 // Set up a timeout timer to restart MathJax if it runs too long,
@@ -784,7 +784,7 @@ function SetRenderer(renderer) {
784784}
785785
786786function RerenderSVG ( result ) {
787- if ( ( data . html || data . htmlNode ) && ( data . svg || data . svgNode ) ) {
787+ if ( ( data . html || data . htmlNode || data . css ) && ( data . svg || data . svgNode ) ) {
788788 timer = setTimeout ( RestartMathJax , data . timeout ) ;
789789 var queue = MathJax . Callback . Queue ( ) , $$ = window . Array ;
790790 return queue . Push (
0 commit comments