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

parent 0f58fc69
......@@ -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);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment