File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,11 @@ MathJax.Extension.mml2jax = {
184
184
createPreview : function ( math , script ) {
185
185
var preview = this . config . preview ;
186
186
if ( preview === "none" ) return ;
187
- if ( preview === "mathml" ) { preview = math }
188
- else if ( preview === "alttext" || preview === "altimg" ) {
187
+ if ( preview === "mathml" ) {
188
+ // mathml preview does not work with IE < 9, so fallback to alttext.
189
+ if ( this . MathTagBug ) { preview = "alttext" } else { preview = math }
190
+ }
191
+ if ( preview === "alttext" || preview === "altimg" ) {
189
192
var alttext = this . filterPreview ( math . getAttribute ( "alttext" ) ) ;
190
193
if ( preview === "alttext" ) {
191
194
if ( alttext != null ) { preview = MathJax . HTML . TextNode ( alttext ) } else { preview = null }
You can’t perform that action at this time.
0 commit comments