The math plugin uses MathJax to render maths.
You can render blocks of maths by wrapping with
$$ E=MC^2 $$
You can render inline math by wrapping with a single
$ like so:
Discourse math uses a heuristic to ensure that sentences such as: “I spent 20$ and another 100$” do not get MathJax treatment.
This plugin only works with the latest version of Discourse with experimental markdown it enabled.
This plugin is disabled by default, after installing be sure to enable it via site settings.
We would love to support server side rendering, there is already an online sample.
We need to discuss a syntax for asciimath. Once a syntax is picked support will be very easy to add.
We are open to adding optional support for Katex.
What about the old plugin?
It is much stricter about block and inline syntax, only $ and $$ blocks are supported
It embeds MathJax so you do not need to use a CDN
It only loads MathJax if it detects equations on the page.
It surgically applies MathJax as opposed to performing full page scans.
It is well specified using specs