# MathJax Error for newcommand defined xrightarrow →

See end of this bug report for the true cause of the problem. It is the Editor that corrupts the initial post, but does not seem to affect subsequent edits. There are a few bug reports about the Editor and MathJax interacting incorrectly, this is a different one.

Initial draft:

On the Operations Research site our MathJax FAQ renders newcommand defined \$\xrightarrow\$ (→) incorrectly compared to other sites with MathJax enabled.

Notice "Example 1" does not render correctly but "Example 2" is correct.

Update:

This is what caused the MathJax to be displayed incorrectly, it's not a "MathJax error" but instead an "Editor error".

Copy pasting MathJax from another site and subsequently editing the first draft caused the editor to go inside the MathJax delimiters and alter numbers within the square brackets.

The editor should not go within \ or \\$ delimiter pairs and alter numbers within square brackets when editing other sections of the post to add or remove links (which causes subsequent numbers within square brackets to be incremented, that must not occur within delimiters).

• I'm voting to close this question as off-topic because it can no longer be reproduced. May 31 '19 at 14:25
• @double-beep Vote as you wish but your comment is incorrect, this was what occurred only a few hours ago.
– Rob
May 31 '19 at 14:32

It is not missing a module. Actually, the $$\LaTeX$$ code in markdown is not the same as that used in the MathJax! It is a typographic error.

Below is the code in markdown. $$\checkmark$$



On the other hand, compare this to $$\Large\times$$


The error lies in the sections {\ra}[4] and {\da}[4] where it should be {\ra}[1] and {\da}[1] respectively.


• Ours was copied from QC's, they are identical and should render the same. It would be kind of you to edit our FAQ page when you get a chance if you are certain that there is no bug.
– Rob
May 31 '19 at 6:37
• @Rob See this comment I left. I can't edit non-tag-wiki meta posts. Btw, I am certain there is no bug as it works when I replace 4 with 1.
– TheSimpliFire Mod
May 31 '19 at 6:38
• I found the actual cause of the bug, it's not MathJax nor so much what was written but instead that the editor updated markup within delimiters. Thanks for your helpful answer which lead me to what actually happened.
– Rob
May 31 '19 at 14:17