# Complex Math-Equations in Markdown

I love markdown and easy markup languages, because in my holy opinion word is some sort of overkill - Far too many options you will never need or use. So I was not able to express complex equations with markdown till now. I found a nice lib called *MathJax* and will show how to use it.

## Installation

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\$$','\$$']],
displayMath: [['$$','$$'], ['$','$']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js"] }
}
});
</script>

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

## Example

### Source

When $a \\ne 0$ , there are two solutions to \$$ax^2 + bx + c = 0\$$ and they are

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

It's important to escape some characters with a backslash (e.g. the backslash itself).

### Output

When $a \ne 0$ , there are two solutions to $$ax^2 + bx + c = 0$$ and they are

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

## Todo

• AsciiMath usage