I noticed the following in one of our downstream tests
\begin{theorem}
Some ref-range equations inside a theorem.
\begin{equation}
x \tag{1}\label{refrange:thm:1}
\end{equation}
\begin{equation}
y \tag{2}\label{refrange:thm:2}
\end{equation}
\begin{equation}
z \tag{3}\label{refrange:thm:3}
\end{equation}
\end{theorem}
I noticed the following in one of our downstream tests
comes out as
Note how only the middle one is wrapped in a
p
tag.