I would like an equation environment that doesn't care about empty lines. Normally, empty lines before and after equation start a new paragraph, resulting in additional vertical spacing around the display equation. Empty lines inside the equation environment cause a compilation error:
Text above
% <- Empty line causes additional spacing
\begin{equation}
\begin{aligned}
% <- Empty line causes error
x &= y \\
% <- Empty line causes error
y &= z
% <- Empty line causes error
\end{aligned}
\end{equation}
% <- Empty line causes additional spacing
Text below

%on the otherwise blank lines. It looks virtually the same, and you don't need to modify LaTeX at all. – Steven B. Segletes May 12 '20 at 18:57\paras they are all commented out. – David Carlisle May 12 '20 at 20:16