-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathdocutil_syntax_extensions.txt
More file actions
304 lines (276 loc) · 6.33 KB
/
Copy pathdocutil_syntax_extensions.txt
File metadata and controls
304 lines (276 loc) · 6.33 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
[dollarmath] --myst-enable-extensions=dollarmath
.
$foo$
a $foo
bar$ b
$$foo$$
$$
a = 1
$$
$$
b = 2
$$ (label)
.
<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
<math_block ids="label" names="label" nowrap="False" number="True" xml:space="preserve">
b = 2
.
[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>
© © ® ® ™ ™ (p) (P) ± …
.
[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>
.
[strikethrough-single-tilde] --myst-enable-extensions=strikethrough --myst-strikethrough-single-tilde="true"
.
~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-tight] --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
.
[tasklist-loose] --myst-enable-extensions=tasklist
.
- [ ] loose foo
extra paragraph
- [x] loose 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">
loose foo
<paragraph>
extra paragraph
<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">
loose bar
.
[alert-note] --myst-enable-extensions=alert
.
> [!NOTE]
> This is a note.
.
<document source="<string>">
<note>
<paragraph>
This is a note.
.
[alert-tip] --myst-enable-extensions=alert
.
> [!TIP]
> This is a tip.
.
<document source="<string>">
<tip>
<paragraph>
This is a tip.
.
[alert-important] --myst-enable-extensions=alert
.
> [!IMPORTANT]
> This is important.
.
<document source="<string>">
<important>
<paragraph>
This is important.
.
[alert-warning] --myst-enable-extensions=alert
.
> [!WARNING]
> This is a warning.
.
<document source="<string>">
<warning>
<paragraph>
This is a warning.
.
[alert-caution] --myst-enable-extensions=alert
.
> [!CAUTION]
> This is a caution.
.
<document source="<string>">
<caution>
<paragraph>
This is a caution.
.
[alert-multiline] --myst-enable-extensions=alert
.
> [!NOTE]
> First paragraph.
>
> Second paragraph.
.
<document source="<string>">
<note>
<paragraph>
First paragraph.
<paragraph>
Second paragraph.
.
[alert-code-fence] --myst-enable-extensions=alert
.
> [!NOTE]
> Note
>
> ```py
> "code"
> ```
>
> other
>
> ```py
> "other code"
> ```
.
<document source="<string>">
<note>
<paragraph>
Note
<literal_block classes="code py" xml:space="preserve">
<inline classes="s2">
"code"
<paragraph>
other
<literal_block classes="code py" xml:space="preserve">
<inline classes="s2">
"other code"
.
[gfm_autolink] --myst-enable-extensions=gfm_autolink
.
Visit www.example.com for info.
Contact user@example.com for help.
.
<document source="<string>">
<paragraph>
Visit
<reference refuri="http://www.example.com">
www.example.com
for info.
<paragraph>
Contact
<reference refuri="mailto:user@example.com">
user@example.com
for help.
.