more cssification of diff rendering, some " -> ' in diff engine
[lhc/web/wiklou.git] / includes / Math.php
index 5946061..8b03af6 100644 (file)
@@ -30,7 +30,7 @@ class MathRenderer {
        
                if( $this->mode == MW_MATH_SOURCE ) {
                        # No need to render or parse anything more!
-                       return ('$ '.htmlspecialchars( $tex ).' $');
+                       return ('$ '.htmlspecialchars( $this->tex ).' $');
                }
                
                if( !$this->_recall() ) {
@@ -182,7 +182,7 @@ class MathRenderer {
                   (($this->mode == MW_MATH_MODERN || $this->mode == MW_MATH_MATHML) && ($this->conservativeness == 0))) {
                        return $this->_linkToMathImage();
                } else {
-                       return $this->html;
+                       return '<span class="texhtml">'.$this->html.'</span>';
                }
        }