Inline vs Block Math Display Test

Test 1: Inline Math with $...$

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.

Test 2: Block Math with $$...$$

This text is followed by block math:

$$\int_a^b f(x)dx$$

Expected: The integral should be centered and on its own line.

Test 3: Inline with \(...\)

Inline formula \(\frac{a}{b}\) should appear within this sentence.

Test 4: Block with \[...\]

Block formula:

\[\sum_{i=0}^n i^2\]

Should be centered and on its own line.

Test 5: Mixed Inline

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.

Verification (check with browser inspector)