Just a thought:

LaTeX is a great option to have during those rare but frustrating moments when Markdown is just “not enough”.

Discourse does not support it out of the box, but there is a battle-tested plugin for Discourse that renders LaTeX via MathJax.

Some screenshots below.

Inline block `$ like this $`

```
$\int_0^\infty\frac{\log\left(\frac{1+x^{4+\sqrt{15}}}{1+x^{2+\sqrt{3}}}\right)}{\left(1+x^2\right)\log x}\mathrm dx$
```

renders as:

Standalone block:

```
\begin{array}{c|cc}
\hline A & B & C\\
\hline D & E & F\\
\hline
\end{array}
```

produces: