MDL-26837 remove blacklisted markup from algebra conversion

This commit is contained in:
Petr Skoda 2011-03-17 15:36:21 +01:00
parent 56babbcb76
commit 10793e570c

View File

@ -219,6 +219,7 @@ class filter_algebra extends moodle_text_filter {
$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;