Skip to content

Commit

Permalink
Fix escaping of \\ ILIAS-eLearning#3993
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Neumann authored and daniwe4 committed Feb 18, 2022
1 parent 0a99288 commit e36eb59
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Services/MathJax/classes/class.ilMathJax.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ public function insertLatexImages(string $a_text, ?string $a_start = '[tex]', ?s
$tex = str_replace('<br />', '', $tex);

// tex specific replacements
$tex = str_replace('\\\\', '\\cr', $tex);
$tex = preg_replace("/\\\\([RZN])([^a-zA-Z])/", "\\mathbb{" . "$1" . "}" . "$2", $tex);

// check, if tags go across div borders
Expand Down

0 comments on commit e36eb59

Please sign in to comment.