-
Notifications
You must be signed in to change notification settings - Fork 48
/
basic.yml
383 lines (383 loc) · 9.25 KB
/
basic.yml
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
title: myst-to-typst basic features
cases:
- title: escapes
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is * ` # % @'
typst: |-
This is \* \` \# % \@
- title: text in paragraph
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'Some '
- type: emphasis
children:
- type: text
value: markdown
- type: text
value: ' and '
- type: strong
children:
- type: text
value: strong
- type: text
value: ' and '
- type: inlineCode
value: inlineCode
- type: text
value: ' and '
- type: link
url: https://example.com
children:
- type: text
value: a link!
- type: text
value: ' and not a # comment'
typst: |-
Some _markdown_ and *strong* and `inlineCode` and #link("https://example.com")[a link!] and not a \# comment
- title: strong
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: strong
children:
- type: text
value: 'strong'
- type: text
value: '.'
typst: |-
This is *strong*.
- title: strong with trailing text
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: strong
children:
- type: text
value: 'strong'
- type: text
value: 'with trailing text!'
typst: |-
This is #strong[strong]with trailing text!
- title: emph with trailing text
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: emphasis
children:
- type: text
value: 'emph'
- type: text
value: 'with trailing text!'
typst: |-
This is #emph[emph]with trailing text!
- title: strong with children
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is a '
- type: strong
children:
- type: text
value: 'strong '
- type: link
url: https://example.com
children:
- type: text
value: link
- type: text
value: '.'
typst: |-
This is a #strong[strong #link("https://example.com")[link]].
- title: emphasis
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: emphasis
children:
- type: text
value: 'emphasis'
- type: text
value: '.'
typst: |-
This is _emphasis_.
- title: emphasis with children
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is a '
- type: emphasis
children:
- type: text
value: 'emphasis '
- type: link
url: https://example.com
children:
- type: text
value: link
- type: text
value: '.'
typst: |-
This is a #emph[emphasis #link("https://example.com")[link]].
- title: subscript
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'Revenue'
- type: subscript
children:
- type: text
value: 'yearly'
typst: |-
Revenue#sub[yearly]
- title: superscript
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '1'
- type: superscript
children:
- type: text
value: 'st'
- type: text
value: ' try!'
typst: |-
1#super[st] try!
- title: strike
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: delete
children:
- type: text
value: 'not'
- type: text
value: ' relevant.'
typst: |-
This is #strike[not] relevant.
- title: underline
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is '
- type: underline
children:
- type: text
value: 'important'
- type: text
value: '.'
typst: |-
This is #underline[important].
- title: smallcaps
mdast:
type: root
children:
- type: paragraph
children:
- type: smallcaps
children:
- type: text
value: 'SimPEG'
typst: |-
#smallcaps[SimPEG]
- title: escapes quotes
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '“quote”'
typst: |-
"quote"
- title: escapes dollar sign
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: I got an ice cream for $1.50!
typst: |-
I got an ice cream for \$1.50!
- title: line break
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Fleas
- type: break
- type: text
value: Adam
- type: break
- type: text
value: Had 'em.
typst: |-
Fleas \
Adam \
Had 'em.
- title: escape tilde and backslash
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: 'This is a tilde: ~ and backslash \\ cool!'
typst: 'This is a tilde: $tilde$ and backslash \\\\ cool!'
- title: escaped *
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: '\*escaped symbols\*'
- title: block hidden
mdast:
type: root
children:
- type: block
visibility: remove
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: ''
- title: block no-typst
mdast:
type: root
children:
- type: block
data:
tags:
- 'no-typst'
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: ''
- title: block no-tex
mdast:
type: root
children:
- type: block
data:
tags:
- 'no-tex'
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: '\*escaped symbols\*'
- title: block no-pdf
mdast:
type: root
children:
- type: block
data:
no-pdf: true
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: ''
- title: block page break
mdast:
type: root
children:
- type: block
data:
tags:
- page-break
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: |-
#pagebreak(weak: true)
\*escaped symbols\*
- title: block new page
mdast:
type: root
children:
- type: block
data:
new-page: true
children:
- type: paragraph
children:
- type: text
value: '*escaped symbols*'
typst: |-
#pagebreak(weak: true)
\*escaped symbols\*
- title: emphasis in a div / span
mdast:
type: root
children:
- type: div
children:
- type: text
value: 'Some % '
- type: span
children:
- type: text
value: 'other '
- type: emphasis
children:
- type: text
value: markdown
typst: |-
Some % other _markdown_