Skip to content
Browse files

MDL-26837 remove blacklisted markup from algebra conversion

  • Loading branch information...
1 parent 56babbc commit 10793e570c4cc1410a3b02c029a4480ca149490f @skodak skodak committed Mar 17, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 filter/algebra/filter.php
View
1 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 10793e5

Please sign in to comment.
Something went wrong with that request. Please try again.