Alexindata - 10 months ago 99

Markdown Question

I accidentally typed

`$$`

`$$`

My question is what does

`$$`

`$$`

Answer

`$$`

is a markup for math. See the relevant section in the pandoc manual. Everything written between two `$$`

markup will be interpreted as tex math (here is some documentation). Note that you can also use a single `$`

sign. `$$`

will produce a block element (a paragraph) while `$`

will produce an inline element. Thus, `$$`

is often used for equations.

Try for instance:

```
Here is an inline formula: $\frac{\alpha}{n}$ that shows...
Here is a standalone equation: $$x \approx \frac{\alpha}{n}$$
```

Source (Stackoverflow)