Discourse has recently released a math plugin which has now been enabled for QuantEcon
You can use $$
for display math and $
for inline math
For example: $\phi = 0.5$
while render inline \phi = 0.5 and
$$
\int_{a}^{b} x^2 dx
$$
will render as a display formula
\int_{a}^{b} x^2 dx