1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Math goes in verbatim spans prefixed with either `$` (for
inline math) or `$$` (for display math).
```
$`e=mc^2`
.
<p><span class="math inline">\(e=mc^2\)</span></p>
```
```
My equation: $`e=mc^2`
.
<p>My equation: <span class="math inline">\(e=mc^2\)</span></p>
```
```
$$`e=mc^2`
.
<p><span class="math display">\[e=mc^2\]</span></p>
```
```
My equation: $$`e=mc^2`
.
<p>My equation: <span class="math display">\[e=mc^2\]</span></p>
```
Newlines are allowed, just as in verbatim:
```
$`e=
mc^2`
.
<p><span class="math inline">\(e=
mc^2\)</span></p>
```
`$` characters are allowed inside:
```
$`e=\text{the number $\pi$}`
.
<p><span class="math inline">\(e=\text{the number $\pi$}\)</span></p>
```
|