I am currently working on writing up some docs for Discrete Math. I wanted to provide an example in markdown, however I am unsure about how I should format it.
Some examples I found online are:

math_exp

$ math_exp $

$$
math_exp
$$

I’m assuming it would show up on GitHub readme, but what about on Codecademy docs?
Any insight would be useful.