User:Mikhail Ryazanov/sandbox/display math span

Illustration for the bug, using  instead of  :

Some paragraph without math, just to show line spacing and paragraph spacing. Yes, just to show line spacing and paragraph spacing. Another paragraph, now with some displayed formula inside the paragraph: $$\displaystyle E = \sqrt{(mc^2)^2 + (pc)^2}, $$ and the paragraph continues after it, without any extra space (or indent, if paragraph indentations were used). Here comes a separate paragraph that has a displayed formula inside it, but this formula ends the paragraph: $$\displaystyle E = \sqrt{(mc^2)^2 + (pc)^2}. $$ Then a new paragraph starts, properly spaced from the previous one (or indented, if...). The final paragraph, again just to show line spacing and paragraph spacing.