On this page
micromark-extension-math
math › should support one, two, or more dollars by default
$a$, $$b$$, $$$c$$$
math › should support an escaped dollar sign which would otherwise open math
a \$b$
.
<p>a $b$</p>
math › should not support escaped dollar signs in math (text)
a $b\$
math › should support math (text) right after an escaped dollar sign
a \$$b$
math › should support a single dollar in math (text) w/ padding and two dollar signs
a $$ $ $$
math › should support nested math by using more dollars outside of math (text)
a $$\raisebox{0.25em}{$\frac a b$}$$ b
math › should support an “escaped” dollar right on the KaTeX level, not on the Markdown level
a $$ \$ $$ b
math › should support padding with a line ending in math (text)
a $$
a\$ $$ b
math › should support math (text) w/ one dollar sign
a $b$
math › should support math (text) w/ two dollar signs
a $$b$$
math › should support math (text) w/ three dollar signs
a $$$b$$$
math › should support EOLs in math
a $b
c␍d␍
e$ f
math › should not support math (flow) w/ one dollar sign
$
a
$
math › should support math (flow) w/ two dollar sign
$$
a
$$
math › should support math (flow) w/ three dollar sign
$$$
a
$$$
math › should support math (flow) w/o content
$$
$$
math › should support math (flow) w/o closing fence
$$
a
math › should support math (flow) w/o closing fence ending at an EOL
$$
a
$$asd & \& asd
a
$$
$$asd$asd
a
$$
math › should not support math (flow) w/ content on the closing fence
$$
a
$$ b
math › should support whitespace on the closing fence
$$
a
$$␣␣
math › should strip the prefix of the opening fence from content lines
$$
→a
b
c
d
$$
math › should support math (flow) in a block quote
> $$
> a
> $$
> b
math › should support math (flow) in a list (item)
* $$
a
$$
b
math › should support <
a $\sum_{\substack{0<i<m\\0<j<n}}$ b
math › should support "
a $\text{a \"{a} c}$ b
math › should not support laziness (1)
> $$
a
$$
math › should not support laziness (2)
> $$
> a
$$
math › should not support laziness (3)
a
> $$