Math Rendering Demo
This page demonstrates how the render_math() helper converts LaTeX-like syntax into styled HTML.
Example 1: Greek Letters & Symbols
render_math('Angles: \theta, \alpha, \beta, \gamma. Constants: \pi. Limits: \infty.')
Angles: θ, α, β, γ. Constants: π. Limits: ∞.
Example 2: Comparisons & Operations
render_math('Conditions: x \le y, a \ge b, P \approx 0.5. Delta: \pm\delta.')
Conditions: x ≤ y, a ≥ b, P ≈ 0.5. Delta: ±δ.
Example 3: Superscripts & Subscripts
render_math('Formula: E = mc^2. Series: x_1, x_2, ..., x_n. Complex: e^{i\pi} + 1 = 0.')
Formula: E = mc2. Series: x1, x2, ..., xn. Complex: eiπ + 1 = 0.
Example 4: Inline Formula Blocks
render_math('The solution is $P = 3 \times (1/8)^2 = 3/64$.')
The solution is P = 3 × (1/8)2 = 3/64.
← Back to Home