Markdown+Math Tests

i valid src render comment
0 😊 $a$

aa

single character inline equation.
1 😊 $\varphi$

φ\\varphi

inline equation with single greek character
2 😊 $1+1=2$

1+1=21+1=2

simple equation starting and ending with numbers.
3 😊 $1+1<3$

1+1<31+1<3

simple equation including special html character.
4 😊 You get 3$ if you solve $1+2$

You get 3$ if you solve 1+21+2

use of currency symbol
5 😊 If you solve $1+2$ you get $3

If you solve 1+21+2 you get $3

use of currency symbol
6 😊 $\frac{1}{2}$

12\\frac{1}{2}

inline fraction
7 😊 $\begin{pmatrix}x\\y\end{pmatrix}$

(xy)\\begin{pmatrix}x\\\\y\\end{pmatrix}

inline column vector
8 😊 ${\tilde\bold e}_\alpha$

e~α{\\tilde\\bold e}\_\\alpha

inline bold vector notation
9 😊 $a^{b}$

aba^{b}

exponentiation
10 😊 $a^*b$ with $a^*$

aba^\*b with aa^\*

conjugate complex
11 😊 $$e_\alpha$$
eαe\_\\alpha
single block equation, greek index
12 😊 $$1+1=2$$
1+1=21+1=2
display equation on its own single line.
13 😊 ${e}_x$ $$e_\alpha$$

ex{e}\_x

eαe\_\\alpha
inline equation followed by block equation.
14 😊 $$c{\bold e}_x = a{\bold e}_\alpha - b\tilde{\bold e}_\alpha$$
cex=aeαbe~αc{\\bold e}\_x = a{\\bold e}\_\\alpha - b\\tilde{\\bold e}\_\\alpha
underline tests
15 😊 a$1+1=2$ $1+1=2$b c$x$d

a1+1=21+1=2 1+1=21+1=2b cxxd

non-numeric character before opening $ or after closing $ or both is allowed.
16 😊 $x$ $

xx $

following dollar character '$' is allowed.
17 😊 $x$ $y$

xx yy

consecutive inline equations.
18 😊 $$ 1+1=2 $$
1+1=2 1+1=2
display equation with line breaks.
19 😊 $$\begin{matrix} f & = & 2 + x + 3 \\ & = & 5 + x \end{matrix}$$
f=2+x+3=5+x\\begin{matrix} f & = & 2 + x + 3 \\\\ & = & 5 + x \\end{matrix}
multiline equation.
20 😊 $$\begin{pmatrix}x_2 \\ y_2 \end{pmatrix} = \begin{pmatrix} A & B \\ C & D \end{pmatrix}\cdot \begin{pmatrix} x_1 \\ y_1 \end{pmatrix}$$
(x2y2)=(ABCD)(x1y1)\\begin{pmatrix}x\_2 \\\\ y\_2 \\end{pmatrix} = \\begin{pmatrix} A & B \\\\ C & D \\end{pmatrix}\\cdot \\begin{pmatrix} x\_1 \\\\ y\_1 \\end{pmatrix}
vector equation.
21 😊 $$f(x) = x^2 - 1$$ (1)
f(x)=x21f(x) = x^2 - 1(1)
display equation with equation number.
22 😊 `code`$a-b$

codeaba-b

inline equation following code section.
23 😊 ``` code ``` $$a+b$$
code
a+ba+b
equation following code block.
24 😊 ``` code ``` $$a+b$$(1)
code
a+ba+b(1)
numbered equation following code block.
25 😊 1. $1+2$ 2. $2+3$ 1. $3+4$
  1. 1+21+2
  2. 2+32+3
    1. 3+43+4
Equations in list.
26 😊 $\sum_{i=1}^n$

i=1n\\sum\_{i=1}^n

Inline sum.
27 😊 $$\sum_{i=1}^n$$
i=1n\\sum\_{i=1}^n
Sum without equation number.
28 😊 $$\sum_{i=1}^n$$ (2)
i=1n\\sum\_{i=1}^n(2)
Sum with equation number.
29 😊 $${\bold e}(\varphi) = \begin{pmatrix} \cos\varphi\\\sin\varphi \end{pmatrix}$$ (3)
e(φ)=(cosφsinφ){\\bold e}(\\varphi) = \\begin{pmatrix} \\cos\\varphi\\\\\\sin\\varphi \\end{pmatrix}(3)
equation number always vertically aligned.
30 😊 > see $a = b + c$ > $c^2=a^2+b^2$ (2) > $c^2=a^2+b^2$

see a=b+ca = b + c c2=a2+b2c^2=a^2+b^2 (2) c2=a2+b2c^2=a^2+b^2

inline equations in blockquote.
31 😡 3$1+1=2$ $1+1=2$4 5$x$6

31+1=21+1=2 1+1=21+1=24 5xx6

numeric character before opening $ or after closing $ is not allowed.
32 😡 $ $ $ x$ $x $

$ $ $ x$ $x $

whitespace character after opening $ or before closing $ is not allowed.
33 😡 \$1+1=2$ $1+1=2\$

$1+1=2$ $1+1=2$

escaped dollars '\$' are interpreted as dollar '$' characters.
34 😡 $1+1=2$$1+1=2$

1+1=21+1=21+1=21+1=2

at least one character (whitespace) is required between two inline formulas.
35 😡 $1+1= 2$

$1+1= 2$

line break in inline equation is not allowed.