When using an environment whose inside is math-mode, it's content is not treated differently (at least not as math-mode).
Example:
https://en.wikipedia.org/wiki/User:Joshinils/tex-pygments#latex,_no_math-tag
where the environments align, equation, math and displaymath are shown.