# Broken markup on some questions (but the preview works)

In at least one questions ( How to compute molecular formula?) there is broken formatting, but only in the posted form. The preview view (if one were to try and edit it) shows what I believe is the correct output.

Text for the line in question:

WCl$_{6}$, WCl$_{14}$, WCl$_{18}$, and WCl$_{21}$.

How it is displayed on the site:

How it is previewed:

This appears to be a bug.

• Please test stuff here: meta.chemistry.stackexchange.com/a/112/22 – ManishEarth May 14 '12 at 0:32
• Does it show up as a bug for you as well? – soandos May 14 '12 at 1:01
• Yep.. Found other strange stuff as well. I'll investigate later. – ManishEarth May 14 '12 at 1:03
• chat.stackexchange.com/transcript/message/4595462#4595462 – ManishEarth May 14 '12 at 13:09
• This definitely looks like the difference between the preview and server back-end code. See this reply for more details about the code changes. I'm wondering if the fix was only applied to the math.stackexchange.com site? – Davide Cervone May 14 '12 at 13:18
• @DavideCervone: Fortunately, the SE mods hang around beta sites, so we may not have to wait too long for an answer. – ManishEarth May 15 '12 at 1:13
• Has anyone tested this on any other SE sites? So far as I know, the fix @Manis links to wasn't specific to Math.SE. – Shog9 May 15 '12 at 13:37

MathJax developer Davide Cervone has created an improved parser for better separation of $\LaTeX$ and Markdown (thanks a lot!). We've tested it on math.se for a while, and since it has been working great, I have now enabled it everywhere. The bug you found is one of the issues that this new parser solves, so this shouldn't happen again.