I literally tried copying and pasting that code in and it still didn't work! Sticking in a space seems to do the trick tho: \cup _{A^\text{op}} = \$$\cup _{A^\text{op}}\$$