Bug 23190#c7 Mark tex text as class="tex".
authorPlatonides <platonides@users.mediawiki.org>
Sat, 17 Apr 2010 15:31:58 +0000 (15:31 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 17 Apr 2010 15:31:58 +0000 (15:31 +0000)
includes/Math.php

index d42c167..3a06c5f 100644 (file)
@@ -38,7 +38,7 @@ class MathRenderer {
                if( $this->mode == MW_MATH_SOURCE ) {
                        # No need to render or parse anything more!
                        # New lines are replaced with spaces, which avoids confusing our parser (bugs 23190, 22818)
-                       return ('$ ' . str_replace( "\n", " ", htmlspecialchars( $this->tex ) ) . ' $');
+                       return ('<span class="tex">$ ' . str_replace( "\n", " ", htmlspecialchars( $this->tex ) ) . ' $</span>');
                }
                if( $this->tex == '' ) {
                        return; # bug 8372