Is your feature request related to a problem? Please describe it.
For example, I have the following code, and now I want to toggle the last display math equation to an inline equation, and I type ts$.
\begin{proof}
This is the proof of Theorem 1.
\begin{equation}
1+1=2
\end{equation}
\end{proof}
Now it becomes
\begin{proof}
This is the proof of Theorem 1. $1+1=2$ \end{proof}
I think it's better to become
\begin{proof}
This is the proof of Theorem 1. $1+1=2$
\end{proof}
Namely, keep the \end{proof} alone.
Describe the solution you'd like
Keep the \end command alone when toggling a display math equation to an inline equation.
Describe alternatives you've considered
No.
Additional context
No.