Skip to content

Commit

Permalink
MDL-26837 remove blacklisted markup from algebra conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 17, 2011
1 parent 56babbc commit 10793e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filter/algebra/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10793e5

Please sign in to comment.