# Write.as: MathJax / Markdown interaction bug

#1

If one has two underscores (subscripts) in a paragraph, mathjax will not work. Here’s a minimal reproducible version:

# Mathjax test with two subscripts in same paragraph

This variable has a subscript $x_0$.

These variables also have subscripts: $y_0$, $y_1$. Math in this paragraph is broken.


#2

It worked for me if you put an \ before each of the underscores, e.g.,

$y\_0$, $y\_1$

#3

I’m aware that this workaround exists. It’s still very confusing that in the first paragraph you don’t have to escape the underscore but you do have to escape it in the second paragraph. I suspect this will catch a lot of people.