# markdown-it-texmath Tests

i | valid | src | render | comment
--- | --- | --- | --- | ---
0 | 😊 | $a$ | a a a | single character inline equation.
1 | 😊 | $\varphi$ | φ\varphi φ | inline equation with single greek character
2 | 😊 | $1+1=2$ | 1+1=2 1+1=2 1+1=2 | simple equation starting and ending with numbers.
3 | 😊 | $1+1<3$ | 1+1<3 1+1<3 1+1<3 | simple equation including special html character.
4 | 😊 | $a \backslash$ | a\a \backslash a\ | equation including backslashes.
5 | 😊 | You get 3$ if you solve $1+2$ | You get 3$ if you solve 1+2 1+2 1+2 | use of currency symbol
6 | 😊 | If you solve $1+2$ you get $3 | If you solve 1+2 1+2 1+2 you get $3 | use of currency symbol
7 | 😊 | $\frac{1}{2}$ | 1 2\frac{1}{2}​2​​1​​ | inline fraction
8 | 😊 | $\begin{pmatrix}x\\y\end{pmatrix}$ | (x y)\begin{pmatrix}x\\y\end{pmatrix}(​x​y​​) | inline column vector
9 | 😊 | ${\tilde\bold e}_\alpha$ | e~α{\tilde\bold e}_\alpha​e​~​​​α​​ | inline bold vector notation
10 | 😊 | $a^{b}$ | a b a^{b}a​b​​ | exponentiation
11 | 😊 | $a^*b$ with $a^*$ | a∗b a^*b a​∗​​b with a∗a^*a​∗​​ | conjugate complex
12 | 😊 | $$e_\alpha$$ | e α e_\alpha e​α​​ | single block equation, greek index
13 | 😊 | $$1+1=2$$ | 1+1=2 1+1=2 1+1=2 | display equation on its own single line.
14 | 😊 | ${e}_x$ $$e_\alpha$$ | e x{e}_x e​x​​ e α e_\alpha e​α​​ | inline equation followed by block equation.
15 | 😊 | $$c{\bold e}_x = a{\bold e}_\alpha - b\tilde{\bold e}_\alpha$$ | c e x=a e α−b e~α c{\bold e}_x = a{\bold e}_\alpha - b\tilde{\bold e}_\alpha ce​x​​=ae​α​​−b​e​~​​​α​​ | underline tests
16 | 😊 | a$1+1=2$ $1+1=2$b c$x$d | a1+1=2 1+1=2 1+1=2 1+1=2 1+1=2 1+1=2b cx x xd | non-numeric character before opening $ or after closing $ or both is allowed.
17 | 😊 | $x$ $ | x x x $ | following dollar character '$' is allowed.
18 | 😊 | $x$ $y$ | x x x y y y | consecutive inline equations.
19 | 😊 | so-what is $x$ | so-what is x x x | inline equation after '-' sign in text.
20 | 😊 | $$ 1+1=2 $$ | 1+1=2 1+1=2 1+1=2 | display equation with line breaks.
21 | 😊 | $$\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}​f​​​​=​=​​​2+x+3​5+x​​ | multiline equation.
22 | 😊 | $$\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}$$ | (x 2 y 2)=(A B C D)⋅(x 1 y 1)\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}(​x​2​​​y​2​​​​)=(​A​C​​​B​D​​)⋅(​x​1​​​y​1​​​​) | vector equation.
23 | 😊 | $$f(x) = x^2 - 1$$ (1) | f(x)=x 2−1 f(x) = x^2 - 1 f(x)=x​2​​−1(1) | display equation with equation number.
24 | 😊 | `code`$a-b$ | `code` a−b a-b a−b | inline equation following code section.
25 | 😊 | ``` code ``` $$a+b$$ |
    code
a+b a+b a+b | equation following code block.
26 | 😊 | ``` code ``` $$a+b$$(1) |
    code
a+b a+b a+b(1) | numbered equation following code block.
27 | 😊 | 1. $1+2$ 2. $2+3$ 1. $3+4$ | 1+2 1+2 1+2 2+3 2+3 2+3 3+4 3+4 3+4 | Equations in list.
28 | 😊 | $\sum_{i=1}^n$ | ∑i=1 n\sum_{i=1}^n∑​i=1​n​​ | Inline sum.
29 | 😊 | $$\sum_{i=1}^n$$ | ∑i=1 n\sum_{i=1}^n​i=1​∑​n​​ | Sum without equation number.
30 | 😊 | $$\sum_{i=1}^n$$ (2) | ∑i=1 n\sum_{i=1}^n​i=1​∑​n​​(2) | Sum with equation number.
31 | 😊 | $${\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}e(φ)=(​cosφ​sinφ​​)(3) | equation number always vertically aligned.
32 | 😊 | > see $a = b + c$ > $c^2=a^2+b^2$ (2) > $c^2=a^2+b^2$ | see a=b+c a = b + c a=b+c c 2=a 2+b 2 c^2=a^2+b^2 c​2​​=a​2​​+b​2​​ (2) c 2=a 2+b 2 c^2=a^2+b^2 c​2​​=a​2​​+b​2​​ | inline equations in blockquote.
33 | 😊 | > formula > > $$ a+b=c$$ (2) > > in blockquote. | formula a+b=c a+b=c a+b=c(2) in blockquote. | display equation in blockquote.
34 | 😊 | \$1+1=2$ $1+1=2\$ | $1+1=2$ $1+1=2$ | escaped dollars '\$' are interpreted as dollar '$' characters.
35 | 😡 | > $$ a+b =c$$ | $$ a+b =c$$ | new line in blockquote block.
36 | 😡 | some text $\$a+b=c$$ | some text $$a+b=c$$ | empty line between text and display formula is required.
37 | 😡 | $ $ $ x$ $x $ | $ $ $ x$ $x $ | whitespace character after opening $ or before closing $ is not allowed.
38 | 😡 | $1+1= 2$ | $1+1= 2$ | line break in inline equation is not allowed.