Skip to content
Snippets Groups Projects
Commit 3a59c04e authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Make sure that 'xx' is not displayed as a cross.

parent 0f58fc69
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,15 @@
window.update_math = function() {
if (trigger_update) {
trigger_update = false;
update_math(input_textarea.val());
// Preprocess input to fix TRS-MathJax incompatibilities.
var input = input_textarea.val();
// Make sure that xx is not displayed as a cross.
while(/xx/.test(input))
input = input.replace(/xx/, 'x x');
update_math(input);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment