Latex Strange (? ? ?) output & Red/Yellow Highlighting of Equation

The following latex markdown code doesn’t seem to work 100% correctly

Supports Latex via [MathJax](HTTP://www.mathjax.org/#demo) Javascript framework. Using so that the equation label $\eqref{eq1}$ can be refereed inline. $$e=mc^2\tag{1}\label{eq1}$$ Einstein provides $\eqref{eq1}$ in his paper.

Expected result

Similar output with the same code on MathJAX

Actual result

Most of the time it shows (???) in the first equation reference.

Some of the time it shows the references correctly but the equation is highlighted yellow.

Environment

• Operating system: Windows 10 1909
• Obsidian version: v0.12.15