r65160 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65159‎ | r65160 | r65161 >
Date:15:31, 17 April 2010
Author:platonides
Status:ok
Tags:
Comment:
Bug 23190#c7 Mark tex text as class="tex".
Modified paths:
  • /trunk/phase3/includes/Math.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Math.php
@@ -38,7 +38,7 @@
3939 if( $this->mode == MW_MATH_SOURCE ) {
4040 # No need to render or parse anything more!
4141 # New lines are replaced with spaces, which avoids confusing our parser (bugs 23190, 22818)
42 - return ('$ ' . str_replace( "\n", " ", htmlspecialchars( $this->tex ) ) . ' $');
 42+ return ('<span class="tex">$ ' . str_replace( "\n", " ", htmlspecialchars( $this->tex ) ) . ' $</span>');
4343 }
4444 if( $this->tex == '' ) {
4545 return; # bug 8372

Follow-up revisions

RevisionCommit summaryAuthorDate
r75909MFT r65039, r65160: fix "Leave it as TeX" math rendering mode, which was caus...tstarling05:33, 3 November 2010

Status & tagging log