How to show math equations in general github’s markdown(not github’s blog)

After investigating, I’ve found mathjax can do this. But when I write some example in my markdown file, it doesn’t show the correct equations:

I have added this in the head of markdown file:

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

And type the mathjax statement:

\(E=mc^2\),$$x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2b}.$$

But github shows nothing for the math symbols! Please help me, thanks!
Tell me how to show math symbols in github markdown pages.

17 Answers
17

Leave a Comment