summaryrefslogtreecommitdiffstats
path: root/tests/test_renderers/fixtures/dollarmath.md
blob: e3e5fd235aeff7ac2d52e52988ae8b0fe6730121 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Inline Math:
.
$foo$
.
<document source="<src>/index.md">
    <paragraph>
        <math>
            foo
.

Inline Math, multi-line:
.
a $foo
bar$ b
.
<document source="<src>/index.md">
    <paragraph>
        a
        <math>
            foo
            bar
         b
.

Inline Math, multi-line with line break (invalid):
.
a $foo

bar$ b
.
<document source="<src>/index.md">
    <paragraph>
        a $foo
    <paragraph>
        bar$ b
.

Math Block:
.
$$foo$$
.
<document source="<src>/index.md">
    <math_block nowrap="False" number="True" xml:space="preserve">
        foo
.

Math Block With Equation Label:
.
$$foo$$ (abc)
.
<document source="<src>/index.md">
    <target ids="equation-abc">
    <math_block docname="index" label="abc" nowrap="False" number="1" xml:space="preserve">
        foo
.

Math Block multiple:
.
$$
a = 1
$$

$$
b = 2
$$ (a)
.
<document source="<src>/index.md">
    <math_block nowrap="False" number="True" xml:space="preserve">

        a = 1
    <target ids="equation-a">
    <math_block docname="index" label="a" nowrap="False" number="1" xml:space="preserve">

        b = 2
.