summaryrefslogtreecommitdiffstats
path: root/tests/test_renderers/fixtures/docutil_syntax_extensions.txt
blob: 5efcb68a105ddee9774992a789a3b3d7f028a69d (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[dollarmath] --myst-enable-extensions=dollarmath
.
$foo$

a $foo
bar$ b

$$foo$$

$$
a = 1
$$
.
<document source="<string>">
    <paragraph>
        <math>
            foo
    <paragraph>
        a
        <math>
            foo
            bar
         b
    <math_block nowrap="False" number="True" xml:space="preserve">
        foo
    <math_block nowrap="False" number="True" xml:space="preserve">

        a = 1
.

[amsmath] --myst-enable-extensions=amsmath
.
\begin{equation} a \end{equation}

\begin{equation}
a
\end{equation}

\begin{equation*}
a
\end{equation*}
.
<document source="<string>">
    <math_block classes="amsmath" nowrap="True" numbered="True" xml:space="preserve">
        \begin{equation} a \end{equation}
    <math_block classes="amsmath" nowrap="True" numbered="True" xml:space="preserve">
        \begin{equation}
        a
        \end{equation}
    <math_block classes="amsmath" nowrap="True" xml:space="preserve">
        \begin{equation*}
        a
        \end{equation*}
.

[deflist] --myst-enable-extensions=deflist
.
term
: definition
.
<document source="<string>">
    <definition_list classes="simple myst">
        <definition_list_item>
            <term>
                term
            <definition>
                <paragraph>
                    definition
.

[fieldlist] --myst-enable-extensions=fieldlist
.
:name: value
.
<document source="<string>">
    <docinfo>
        <field classes="name">
            <field_name>
                name
            <field_body>
                <paragraph>
                    value
.

[colon_fence] --myst-enable-extensions=colon_fence
.
:::{note}
content
:::
.
<document source="<string>">
    <note>
        <paragraph>
            content
.

[replacements] --myst-enable-extensions=replacements
.
(c) (C) (r) (R) (tm) (TM) (p) (P) +- ...
.
<document source="<string>">
    <paragraph>
        © © ® ® ™ ™ § § ± …
.

[strikethrough] --myst-enable-extensions=strikethrough
.
~~foo~~
.
<document source="<string>">
    <paragraph>
        <system_message level="2" line="1" source="<string>" type="WARNING">
            <paragraph>
                Strikethrough is currently only supported in HTML output [myst.strikethrough]
        <raw format="html" xml:space="preserve">
            <s>
        foo
        <raw format="html" xml:space="preserve">
            </s>
.

[tasklist] --myst-enable-extensions=tasklist
.
- [ ] foo
- [x] bar
.
<document source="<string>">
    <bullet_list bullet="-" classes="contains-task-list">
        <list_item classes="task-list-item">
            <paragraph>
                <raw format="html" xml:space="preserve">
                    <input class="task-list-item-checkbox" disabled="disabled" type="checkbox">
                 foo
        <list_item classes="task-list-item">
            <paragraph>
                <raw format="html" xml:space="preserve">
                    <input class="task-list-item-checkbox" checked="checked" disabled="disabled" type="checkbox">
                 bar
.