dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8762d51
)
Bug 23190#c7 Mark tex text as class="tex".
author
Platonides
<platonides@users.mediawiki.org>
Sat, 17 Apr 2010 15:31:58 +0000
(15:31 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Sat, 17 Apr 2010 15:31:58 +0000
(15:31 +0000)
includes/Math.php
patch
|
blob
|
history
diff --git
a/includes/Math.php
b/includes/Math.php
index
d42c167
..
3a06c5f
100644
(file)
--- a/
includes/Math.php
+++ b/
includes/Math.php
@@
-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