Fix double-brace replacement in MathJax rendering.