This repl handles a few scenarios where whitespace plays an important role in LaTeX parsing.
To view this on TripleLog, click here.
The HTML is a simple input/output to change a string of text.
Add CSS by editing the style.css file that is linked to in the head section or inline edit the style section in the head.
The script.js file looks for \lim, \sum, and \prod and replaces upcoming whitespace with {} to keep the expression properly grouped for later parsing