# How to skip line number for a block of code

I am trying to use MathJax in CM and wondering if I could ignore/remove line style for certain blocks. In this case math is working if the equation is in a sigle line. However, when it spans to multiple lines, the math view is NOT enforced. For. e.g.
This works:
$$x+1\over\sqrt{1-x^2}\label{ref2}$$

This is not:

x+1\over\sqrt{1-x^2}\label{ref2}