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