Permalink
Browse files

Merge branch 'w12_MDL-26837_20_algebra' of git://github.com/skodak/mo…

…odle
  • Loading branch information...
2 parents 1698268 + 10793e5 commit d1f54251711221e031dad49b25485f89485a97a4 Sam Hemelryk committed Mar 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 filter/algebra/filter.php
@@ -219,6 +219,7 @@ function filter($text, array $options = array()){
$texexp = preg_replace('/\\\int\\\left\((.+?),(.+?),(.+?)\\\right\)/s','\int_'. "{\$2}^{\$3}\$1 ",$texexp);
$texexp = preg_replace('/\\\int\\\left\((.+?d[a-z])\\\right\)/s','\int '. "\$1 ",$texexp);
$texexp = preg_replace('/\\\lim\\\left\((.+?),(.+?),(.+?)\\\right\)/s','\lim_'. "{\$2\\to \$3}\$1 ",$texexp);
+ $texexp = str_replace('\mbox', '', $texexp); // now blacklisted in tex, sorry
$texcache->filter = 'algebra';
$texcache->version = 1;
$texcache->md5key = $md5;

0 comments on commit d1f5425

Please sign in to comment.