Skip to content

Commit

Permalink
Fix escaping of \\ #3993
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Neumann committed Feb 17, 2022
1 parent 6af1432 commit 5de12cb
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 5de12cb

Please sign in to comment.