Merge branch 'MDL-48955-27' of https://github.com/vadimonus/moodle into MOODLE_27_STABLE

This commit is contained in:
Dan Poltawski
2015-02-03 14:05:02 +00:00
+1 -1
View File
@@ -144,7 +144,7 @@ class filter_mathjaxloader extends moodle_text_filter {
$text = str_replace('[tex]', '\\(', $text);
$text = str_replace('[/tex]', '\\)', $text);
// E.g. "$$ blah $$".
$text = preg_replace('|\$\$[\S\s]\$\$|u', '\\(\1\\)', $text);
$text = preg_replace('|\$\$([\S\s]*?)\$\$|u', '\\(\1\\)', $text);
// E.g. "\[ blah \]".
$text = str_replace('\\[', '\\(', $text);
$text = str_replace('\\]', '\\)', $text);