This text has inline math: $E = mc^2$ and more text after it.
Expected: The math should appear inline with the text, not on a separate line.
This text is followed by block math:
$$\int_a^b f(x)dx$$Expected: The integral should be centered and on its own line.
Inline formula \(\frac{a}{b}\) should appear within this sentence.
Block formula:
\[\sum_{i=0}^n i^2\]Should be centered and on its own line.
Here are multiple inline formulas: $x^2$, $y^3$, and $z^4$ in one sentence.
Expected: All three should appear inline, not breaking the text flow.