# Configuring MathJax on Ghost

I am going to add MathJax support. In the code injection portion of your settings, add the following code to the header injection mechanism:

```
<script type="text/javascript" async
src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
```

Once that is done, the following will render in your posts once published:

$$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi}{6}$$

$$ x^{2} + y^{2} = z^{2} $$