Don't render inline math when dollar signs are inside markup
This shouldn't be math, but currently is: *$*`2+2`*$* -> $2+2$
Also changed XPath queries to CSS because it's more readable.
This shouldn't be math, but currently is: *$*`2+2`*$* -> $2+2$
Also changed XPath queries to CSS because it's more readable.