Skip to content

Commit

Permalink
Merge branch 'MDL-48955-28' of https://github.com/vadimonus/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_28_STABLE
  • Loading branch information
danpoltawski committed Feb 3, 2015
2 parents 14caa61 + d3f49a8 commit abb61b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/mathjaxloader/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function filter($text, array $options = array()) {
$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);
Expand Down

0 comments on commit abb61b1

Please sign in to comment.