commonmarker 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +149 -120
- data/README.md +33 -22
- data/ext/commonmarker/Cargo.toml +2 -2
- data/ext/commonmarker/src/lib.rs +1 -1
- data/ext/commonmarker/src/node.rs +11 -8
- data/ext/commonmarker/src/options.rs +41 -4
- data/lib/commonmarker/config.rb +10 -1
- data/lib/commonmarker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68467a1bf2ae449bfb07febbb6559778974b81d6c6df5a2a1a7022efff846000
|
|
4
|
+
data.tar.gz: a97250f78127cb2277e5727c573ca41482971f25df88e8516f6ba0176ea49ebd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72709d354fc8d476285642e9a32ed575189f318941e736f4829470bf7bf42fc47506a6f2912d1f3c5a5f1b436f56c81ce251cd94937eb2907b659837621573a7
|
|
7
|
+
data.tar.gz: bedc677e77ce171e5f0f8d40493178598af42aa27a59b5939adba35d1022f8cca957ab8153c2362d406d8df8962a558e88a8a2d52f4e7d30829c99be37ea4d0e
|
data/Cargo.lock
CHANGED
|
@@ -19,9 +19,9 @@ dependencies = [
|
|
|
19
19
|
|
|
20
20
|
[[package]]
|
|
21
21
|
name = "anstream"
|
|
22
|
-
version = "0.6.
|
|
22
|
+
version = "0.6.15"
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
-
checksum = "
|
|
24
|
+
checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
|
|
25
25
|
dependencies = [
|
|
26
26
|
"anstyle",
|
|
27
27
|
"anstyle-parse",
|
|
@@ -34,33 +34,33 @@ dependencies = [
|
|
|
34
34
|
|
|
35
35
|
[[package]]
|
|
36
36
|
name = "anstyle"
|
|
37
|
-
version = "1.0.
|
|
37
|
+
version = "1.0.8"
|
|
38
38
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
-
checksum = "
|
|
39
|
+
checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
|
|
40
40
|
|
|
41
41
|
[[package]]
|
|
42
42
|
name = "anstyle-parse"
|
|
43
|
-
version = "0.2.
|
|
43
|
+
version = "0.2.5"
|
|
44
44
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
-
checksum = "
|
|
45
|
+
checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
|
|
46
46
|
dependencies = [
|
|
47
47
|
"utf8parse",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
50
|
[[package]]
|
|
51
51
|
name = "anstyle-query"
|
|
52
|
-
version = "1.
|
|
52
|
+
version = "1.1.1"
|
|
53
53
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
-
checksum = "
|
|
54
|
+
checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
|
|
55
55
|
dependencies = [
|
|
56
56
|
"windows-sys 0.52.0",
|
|
57
57
|
]
|
|
58
58
|
|
|
59
59
|
[[package]]
|
|
60
60
|
name = "anstyle-wincon"
|
|
61
|
-
version = "3.0.
|
|
61
|
+
version = "3.0.4"
|
|
62
62
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
-
checksum = "
|
|
63
|
+
checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
|
|
64
64
|
dependencies = [
|
|
65
65
|
"anstyle",
|
|
66
66
|
"windows-sys 0.52.0",
|
|
@@ -68,9 +68,9 @@ dependencies = [
|
|
|
68
68
|
|
|
69
69
|
[[package]]
|
|
70
70
|
name = "base64"
|
|
71
|
-
version = "0.
|
|
71
|
+
version = "0.22.1"
|
|
72
72
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
-
checksum = "
|
|
73
|
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
74
74
|
|
|
75
75
|
[[package]]
|
|
76
76
|
name = "bincode"
|
|
@@ -87,7 +87,7 @@ version = "0.69.4"
|
|
|
87
87
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
88
|
checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
|
|
89
89
|
dependencies = [
|
|
90
|
-
"bitflags 2.
|
|
90
|
+
"bitflags 2.6.0",
|
|
91
91
|
"cexpr",
|
|
92
92
|
"clang-sys",
|
|
93
93
|
"itertools",
|
|
@@ -124,9 +124,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
|
124
124
|
|
|
125
125
|
[[package]]
|
|
126
126
|
name = "bitflags"
|
|
127
|
-
version = "2.
|
|
127
|
+
version = "2.6.0"
|
|
128
128
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
-
checksum = "
|
|
129
|
+
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
|
130
130
|
|
|
131
131
|
[[package]]
|
|
132
132
|
name = "bumpalo"
|
|
@@ -134,11 +134,21 @@ version = "3.16.0"
|
|
|
134
134
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
135
|
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
|
136
136
|
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "caseless"
|
|
139
|
+
version = "0.2.1"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "808dab3318747be122cb31d36de18d4d1c81277a76f8332a02b81a3d73463d7f"
|
|
142
|
+
dependencies = [
|
|
143
|
+
"regex",
|
|
144
|
+
"unicode-normalization",
|
|
145
|
+
]
|
|
146
|
+
|
|
137
147
|
[[package]]
|
|
138
148
|
name = "cc"
|
|
139
|
-
version = "1.
|
|
149
|
+
version = "1.1.7"
|
|
140
150
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
-
checksum = "
|
|
151
|
+
checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc"
|
|
142
152
|
|
|
143
153
|
[[package]]
|
|
144
154
|
name = "cexpr"
|
|
@@ -157,9 +167,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
|
157
167
|
|
|
158
168
|
[[package]]
|
|
159
169
|
name = "clang-sys"
|
|
160
|
-
version = "1.
|
|
170
|
+
version = "1.8.1"
|
|
161
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
-
checksum = "
|
|
172
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
|
163
173
|
dependencies = [
|
|
164
174
|
"glob",
|
|
165
175
|
"libc",
|
|
@@ -168,9 +178,9 @@ dependencies = [
|
|
|
168
178
|
|
|
169
179
|
[[package]]
|
|
170
180
|
name = "clap"
|
|
171
|
-
version = "4.5.
|
|
181
|
+
version = "4.5.11"
|
|
172
182
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
-
checksum = "
|
|
183
|
+
checksum = "35723e6a11662c2afb578bcf0b88bf6ea8e21282a953428f240574fcc3a2b5b3"
|
|
174
184
|
dependencies = [
|
|
175
185
|
"clap_builder",
|
|
176
186
|
"clap_derive",
|
|
@@ -178,9 +188,9 @@ dependencies = [
|
|
|
178
188
|
|
|
179
189
|
[[package]]
|
|
180
190
|
name = "clap_builder"
|
|
181
|
-
version = "4.5.
|
|
191
|
+
version = "4.5.11"
|
|
182
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
-
checksum = "
|
|
193
|
+
checksum = "49eb96cbfa7cfa35017b7cd548c75b14c3118c98b423041d70562665e07fb0fa"
|
|
184
194
|
dependencies = [
|
|
185
195
|
"anstream",
|
|
186
196
|
"anstyle",
|
|
@@ -191,9 +201,9 @@ dependencies = [
|
|
|
191
201
|
|
|
192
202
|
[[package]]
|
|
193
203
|
name = "clap_derive"
|
|
194
|
-
version = "4.5.
|
|
204
|
+
version = "4.5.11"
|
|
195
205
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
-
checksum = "
|
|
206
|
+
checksum = "5d029b67f89d30bbb547c89fd5161293c0aec155fc691d7924b64550662db93e"
|
|
197
207
|
dependencies = [
|
|
198
208
|
"heck",
|
|
199
209
|
"proc-macro2",
|
|
@@ -203,15 +213,15 @@ dependencies = [
|
|
|
203
213
|
|
|
204
214
|
[[package]]
|
|
205
215
|
name = "clap_lex"
|
|
206
|
-
version = "0.7.
|
|
216
|
+
version = "0.7.2"
|
|
207
217
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
-
checksum = "
|
|
218
|
+
checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
|
|
209
219
|
|
|
210
220
|
[[package]]
|
|
211
221
|
name = "colorchoice"
|
|
212
|
-
version = "1.0.
|
|
222
|
+
version = "1.0.2"
|
|
213
223
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
-
checksum = "
|
|
224
|
+
checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
|
|
215
225
|
|
|
216
226
|
[[package]]
|
|
217
227
|
name = "commonmarker"
|
|
@@ -227,10 +237,11 @@ dependencies = [
|
|
|
227
237
|
|
|
228
238
|
[[package]]
|
|
229
239
|
name = "comrak"
|
|
230
|
-
version = "0.
|
|
240
|
+
version = "0.26.0"
|
|
231
241
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
-
checksum = "
|
|
242
|
+
checksum = "395ab67843c57df5a4ee29d610740828dbc928cc64ecf0f2a1d5cd0e98e107a9"
|
|
233
243
|
dependencies = [
|
|
244
|
+
"caseless",
|
|
234
245
|
"clap",
|
|
235
246
|
"derive_builder",
|
|
236
247
|
"emojis",
|
|
@@ -257,9 +268,9 @@ dependencies = [
|
|
|
257
268
|
|
|
258
269
|
[[package]]
|
|
259
270
|
name = "darling"
|
|
260
|
-
version = "0.20.
|
|
271
|
+
version = "0.20.10"
|
|
261
272
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
-
checksum = "
|
|
273
|
+
checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
|
|
263
274
|
dependencies = [
|
|
264
275
|
"darling_core",
|
|
265
276
|
"darling_macro",
|
|
@@ -267,9 +278,9 @@ dependencies = [
|
|
|
267
278
|
|
|
268
279
|
[[package]]
|
|
269
280
|
name = "darling_core"
|
|
270
|
-
version = "0.20.
|
|
281
|
+
version = "0.20.10"
|
|
271
282
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
272
|
-
checksum = "
|
|
283
|
+
checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
|
|
273
284
|
dependencies = [
|
|
274
285
|
"fnv",
|
|
275
286
|
"ident_case",
|
|
@@ -281,9 +292,9 @@ dependencies = [
|
|
|
281
292
|
|
|
282
293
|
[[package]]
|
|
283
294
|
name = "darling_macro"
|
|
284
|
-
version = "0.20.
|
|
295
|
+
version = "0.20.10"
|
|
285
296
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
-
checksum = "
|
|
297
|
+
checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
|
|
287
298
|
dependencies = [
|
|
288
299
|
"darling_core",
|
|
289
300
|
"quote",
|
|
@@ -338,15 +349,15 @@ checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00"
|
|
|
338
349
|
|
|
339
350
|
[[package]]
|
|
340
351
|
name = "either"
|
|
341
|
-
version = "1.
|
|
352
|
+
version = "1.13.0"
|
|
342
353
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
-
checksum = "
|
|
354
|
+
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
|
344
355
|
|
|
345
356
|
[[package]]
|
|
346
357
|
name = "emojis"
|
|
347
|
-
version = "0.6.
|
|
358
|
+
version = "0.6.3"
|
|
348
359
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
-
checksum = "
|
|
360
|
+
checksum = "e72f23d65b46527e461b161ab9a126c378aa2249d8a8d15718d23ab1fb4d8786"
|
|
350
361
|
dependencies = [
|
|
351
362
|
"phf",
|
|
352
363
|
]
|
|
@@ -435,9 +446,9 @@ dependencies = [
|
|
|
435
446
|
|
|
436
447
|
[[package]]
|
|
437
448
|
name = "is_terminal_polyfill"
|
|
438
|
-
version = "1.70.
|
|
449
|
+
version = "1.70.1"
|
|
439
450
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
440
|
-
checksum = "
|
|
451
|
+
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
|
|
441
452
|
|
|
442
453
|
[[package]]
|
|
443
454
|
name = "itertools"
|
|
@@ -456,9 +467,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
|
|
|
456
467
|
|
|
457
468
|
[[package]]
|
|
458
469
|
name = "lazy_static"
|
|
459
|
-
version = "1.
|
|
470
|
+
version = "1.5.0"
|
|
460
471
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
461
|
-
checksum = "
|
|
472
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
462
473
|
|
|
463
474
|
[[package]]
|
|
464
475
|
name = "lazycell"
|
|
@@ -474,20 +485,14 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
|
|
|
474
485
|
|
|
475
486
|
[[package]]
|
|
476
487
|
name = "libloading"
|
|
477
|
-
version = "0.8.
|
|
488
|
+
version = "0.8.5"
|
|
478
489
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
-
checksum = "
|
|
490
|
+
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
|
|
480
491
|
dependencies = [
|
|
481
492
|
"cfg-if",
|
|
482
|
-
"windows-targets 0.52.
|
|
493
|
+
"windows-targets 0.52.6",
|
|
483
494
|
]
|
|
484
495
|
|
|
485
|
-
[[package]]
|
|
486
|
-
name = "line-wrap"
|
|
487
|
-
version = "0.2.0"
|
|
488
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
489
|
-
checksum = "dd1bc4d24ad230d21fb898d1116b1801d7adfc449d42026475862ab48b11e70e"
|
|
490
|
-
|
|
491
496
|
[[package]]
|
|
492
497
|
name = "linked-hash-map"
|
|
493
498
|
version = "0.5.6"
|
|
@@ -502,15 +507,15 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
|
|
502
507
|
|
|
503
508
|
[[package]]
|
|
504
509
|
name = "log"
|
|
505
|
-
version = "0.4.
|
|
510
|
+
version = "0.4.22"
|
|
506
511
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
-
checksum = "
|
|
512
|
+
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|
508
513
|
|
|
509
514
|
[[package]]
|
|
510
515
|
name = "magnus"
|
|
511
|
-
version = "0.
|
|
516
|
+
version = "0.7.1"
|
|
512
517
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
-
checksum = "
|
|
518
|
+
checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
|
|
514
519
|
dependencies = [
|
|
515
520
|
"magnus-macros",
|
|
516
521
|
"rb-sys",
|
|
@@ -531,9 +536,9 @@ dependencies = [
|
|
|
531
536
|
|
|
532
537
|
[[package]]
|
|
533
538
|
name = "memchr"
|
|
534
|
-
version = "2.7.
|
|
539
|
+
version = "2.7.4"
|
|
535
540
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
536
|
-
checksum = "
|
|
541
|
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
|
537
542
|
|
|
538
543
|
[[package]]
|
|
539
544
|
name = "minimal-lexical"
|
|
@@ -543,9 +548,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
|
543
548
|
|
|
544
549
|
[[package]]
|
|
545
550
|
name = "miniz_oxide"
|
|
546
|
-
version = "0.7.
|
|
551
|
+
version = "0.7.4"
|
|
547
552
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
548
|
-
checksum = "
|
|
553
|
+
checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08"
|
|
549
554
|
dependencies = [
|
|
550
555
|
"adler",
|
|
551
556
|
]
|
|
@@ -620,13 +625,12 @@ checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
|
|
|
620
625
|
|
|
621
626
|
[[package]]
|
|
622
627
|
name = "plist"
|
|
623
|
-
version = "1.
|
|
628
|
+
version = "1.7.0"
|
|
624
629
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
625
|
-
checksum = "
|
|
630
|
+
checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"
|
|
626
631
|
dependencies = [
|
|
627
632
|
"base64",
|
|
628
633
|
"indexmap",
|
|
629
|
-
"line-wrap",
|
|
630
634
|
"quick-xml",
|
|
631
635
|
"serde",
|
|
632
636
|
"time",
|
|
@@ -640,18 +644,18 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
|
|
640
644
|
|
|
641
645
|
[[package]]
|
|
642
646
|
name = "proc-macro2"
|
|
643
|
-
version = "1.0.
|
|
647
|
+
version = "1.0.86"
|
|
644
648
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
645
|
-
checksum = "
|
|
649
|
+
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
|
646
650
|
dependencies = [
|
|
647
651
|
"unicode-ident",
|
|
648
652
|
]
|
|
649
653
|
|
|
650
654
|
[[package]]
|
|
651
655
|
name = "quick-xml"
|
|
652
|
-
version = "0.
|
|
656
|
+
version = "0.32.0"
|
|
653
657
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
654
|
-
checksum = "
|
|
658
|
+
checksum = "1d3a6e5838b60e0e8fa7a43f22ade549a37d61f8bdbe636d0d7816191de969c2"
|
|
655
659
|
dependencies = [
|
|
656
660
|
"memchr",
|
|
657
661
|
]
|
|
@@ -667,18 +671,18 @@ dependencies = [
|
|
|
667
671
|
|
|
668
672
|
[[package]]
|
|
669
673
|
name = "rb-sys"
|
|
670
|
-
version = "0.9.
|
|
674
|
+
version = "0.9.99"
|
|
671
675
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
672
|
-
checksum = "
|
|
676
|
+
checksum = "d83151cfea2b67db2444f68c53b119ff77cff235ad711c765072e4daf8f3185b"
|
|
673
677
|
dependencies = [
|
|
674
678
|
"rb-sys-build",
|
|
675
679
|
]
|
|
676
680
|
|
|
677
681
|
[[package]]
|
|
678
682
|
name = "rb-sys-build"
|
|
679
|
-
version = "0.9.
|
|
683
|
+
version = "0.9.99"
|
|
680
684
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
681
|
-
checksum = "
|
|
685
|
+
checksum = "32d038214c118ad4a75db555ccb78672e17e1c5c10f344456cd129008dbaa7de"
|
|
682
686
|
dependencies = [
|
|
683
687
|
"bindgen",
|
|
684
688
|
"lazy_static",
|
|
@@ -703,9 +707,9 @@ checksum = "e03e7866abec1101869ffa8e2c8355c4c2419d0214ece0cc3e428e5b94dea6e9"
|
|
|
703
707
|
|
|
704
708
|
[[package]]
|
|
705
709
|
name = "regex"
|
|
706
|
-
version = "1.10.
|
|
710
|
+
version = "1.10.5"
|
|
707
711
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
708
|
-
checksum = "
|
|
712
|
+
checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f"
|
|
709
713
|
dependencies = [
|
|
710
714
|
"aho-corasick",
|
|
711
715
|
"memchr",
|
|
@@ -715,9 +719,9 @@ dependencies = [
|
|
|
715
719
|
|
|
716
720
|
[[package]]
|
|
717
721
|
name = "regex-automata"
|
|
718
|
-
version = "0.4.
|
|
722
|
+
version = "0.4.7"
|
|
719
723
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
720
|
-
checksum = "
|
|
724
|
+
checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
|
|
721
725
|
dependencies = [
|
|
722
726
|
"aho-corasick",
|
|
723
727
|
"memchr",
|
|
@@ -726,9 +730,9 @@ dependencies = [
|
|
|
726
730
|
|
|
727
731
|
[[package]]
|
|
728
732
|
name = "regex-syntax"
|
|
729
|
-
version = "0.8.
|
|
733
|
+
version = "0.8.4"
|
|
730
734
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
731
|
-
checksum = "
|
|
735
|
+
checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
|
|
732
736
|
|
|
733
737
|
[[package]]
|
|
734
738
|
name = "rustc-hash"
|
|
@@ -742,7 +746,7 @@ version = "0.38.34"
|
|
|
742
746
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
743
747
|
checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
|
|
744
748
|
dependencies = [
|
|
745
|
-
"bitflags 2.
|
|
749
|
+
"bitflags 2.6.0",
|
|
746
750
|
"errno",
|
|
747
751
|
"libc",
|
|
748
752
|
"linux-raw-sys",
|
|
@@ -772,18 +776,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
|
772
776
|
|
|
773
777
|
[[package]]
|
|
774
778
|
name = "serde"
|
|
775
|
-
version = "1.0.
|
|
779
|
+
version = "1.0.204"
|
|
776
780
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
777
|
-
checksum = "
|
|
781
|
+
checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"
|
|
778
782
|
dependencies = [
|
|
779
783
|
"serde_derive",
|
|
780
784
|
]
|
|
781
785
|
|
|
782
786
|
[[package]]
|
|
783
787
|
name = "serde_derive"
|
|
784
|
-
version = "1.0.
|
|
788
|
+
version = "1.0.204"
|
|
785
789
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
786
|
-
checksum = "
|
|
790
|
+
checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
|
|
787
791
|
dependencies = [
|
|
788
792
|
"proc-macro2",
|
|
789
793
|
"quote",
|
|
@@ -792,11 +796,12 @@ dependencies = [
|
|
|
792
796
|
|
|
793
797
|
[[package]]
|
|
794
798
|
name = "serde_json"
|
|
795
|
-
version = "1.0.
|
|
799
|
+
version = "1.0.121"
|
|
796
800
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
797
|
-
checksum = "
|
|
801
|
+
checksum = "4ab380d7d9f22ef3f21ad3e6c1ebe8e4fc7a2000ccba2e4d71fc96f15b2cb609"
|
|
798
802
|
dependencies = [
|
|
799
803
|
"itoa",
|
|
804
|
+
"memchr",
|
|
800
805
|
"ryu",
|
|
801
806
|
"serde",
|
|
802
807
|
]
|
|
@@ -837,9 +842,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
|
837
842
|
|
|
838
843
|
[[package]]
|
|
839
844
|
name = "syn"
|
|
840
|
-
version = "2.0.
|
|
845
|
+
version = "2.0.72"
|
|
841
846
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
842
|
-
checksum = "
|
|
847
|
+
checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af"
|
|
843
848
|
dependencies = [
|
|
844
849
|
"proc-macro2",
|
|
845
850
|
"quote",
|
|
@@ -881,18 +886,18 @@ dependencies = [
|
|
|
881
886
|
|
|
882
887
|
[[package]]
|
|
883
888
|
name = "thiserror"
|
|
884
|
-
version = "1.0.
|
|
889
|
+
version = "1.0.63"
|
|
885
890
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
886
|
-
checksum = "
|
|
891
|
+
checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724"
|
|
887
892
|
dependencies = [
|
|
888
893
|
"thiserror-impl",
|
|
889
894
|
]
|
|
890
895
|
|
|
891
896
|
[[package]]
|
|
892
897
|
name = "thiserror-impl"
|
|
893
|
-
version = "1.0.
|
|
898
|
+
version = "1.0.63"
|
|
894
899
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
895
|
-
checksum = "
|
|
900
|
+
checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"
|
|
896
901
|
dependencies = [
|
|
897
902
|
"proc-macro2",
|
|
898
903
|
"quote",
|
|
@@ -930,6 +935,21 @@ dependencies = [
|
|
|
930
935
|
"time-core",
|
|
931
936
|
]
|
|
932
937
|
|
|
938
|
+
[[package]]
|
|
939
|
+
name = "tinyvec"
|
|
940
|
+
version = "1.8.0"
|
|
941
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
942
|
+
checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
|
|
943
|
+
dependencies = [
|
|
944
|
+
"tinyvec_macros",
|
|
945
|
+
]
|
|
946
|
+
|
|
947
|
+
[[package]]
|
|
948
|
+
name = "tinyvec_macros"
|
|
949
|
+
version = "0.1.1"
|
|
950
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
951
|
+
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|
952
|
+
|
|
933
953
|
[[package]]
|
|
934
954
|
name = "typed-arena"
|
|
935
955
|
version = "2.0.2"
|
|
@@ -942,6 +962,15 @@ version = "1.0.12"
|
|
|
942
962
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
943
963
|
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
|
944
964
|
|
|
965
|
+
[[package]]
|
|
966
|
+
name = "unicode-normalization"
|
|
967
|
+
version = "0.1.23"
|
|
968
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
969
|
+
checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
|
|
970
|
+
dependencies = [
|
|
971
|
+
"tinyvec",
|
|
972
|
+
]
|
|
973
|
+
|
|
945
974
|
[[package]]
|
|
946
975
|
name = "unicode_categories"
|
|
947
976
|
version = "0.1.1"
|
|
@@ -950,9 +979,9 @@ checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
|
|
|
950
979
|
|
|
951
980
|
[[package]]
|
|
952
981
|
name = "utf8parse"
|
|
953
|
-
version = "0.2.
|
|
982
|
+
version = "0.2.2"
|
|
954
983
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
955
|
-
checksum = "
|
|
984
|
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
956
985
|
|
|
957
986
|
[[package]]
|
|
958
987
|
name = "walkdir"
|
|
@@ -1042,7 +1071,7 @@ version = "0.52.0"
|
|
|
1042
1071
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1043
1072
|
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
|
1044
1073
|
dependencies = [
|
|
1045
|
-
"windows-targets 0.52.
|
|
1074
|
+
"windows-targets 0.52.6",
|
|
1046
1075
|
]
|
|
1047
1076
|
|
|
1048
1077
|
[[package]]
|
|
@@ -1062,18 +1091,18 @@ dependencies = [
|
|
|
1062
1091
|
|
|
1063
1092
|
[[package]]
|
|
1064
1093
|
name = "windows-targets"
|
|
1065
|
-
version = "0.52.
|
|
1094
|
+
version = "0.52.6"
|
|
1066
1095
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1067
|
-
checksum = "
|
|
1096
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
1068
1097
|
dependencies = [
|
|
1069
|
-
"windows_aarch64_gnullvm 0.52.
|
|
1070
|
-
"windows_aarch64_msvc 0.52.
|
|
1071
|
-
"windows_i686_gnu 0.52.
|
|
1098
|
+
"windows_aarch64_gnullvm 0.52.6",
|
|
1099
|
+
"windows_aarch64_msvc 0.52.6",
|
|
1100
|
+
"windows_i686_gnu 0.52.6",
|
|
1072
1101
|
"windows_i686_gnullvm",
|
|
1073
|
-
"windows_i686_msvc 0.52.
|
|
1074
|
-
"windows_x86_64_gnu 0.52.
|
|
1075
|
-
"windows_x86_64_gnullvm 0.52.
|
|
1076
|
-
"windows_x86_64_msvc 0.52.
|
|
1102
|
+
"windows_i686_msvc 0.52.6",
|
|
1103
|
+
"windows_x86_64_gnu 0.52.6",
|
|
1104
|
+
"windows_x86_64_gnullvm 0.52.6",
|
|
1105
|
+
"windows_x86_64_msvc 0.52.6",
|
|
1077
1106
|
]
|
|
1078
1107
|
|
|
1079
1108
|
[[package]]
|
|
@@ -1084,9 +1113,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
|
|
1084
1113
|
|
|
1085
1114
|
[[package]]
|
|
1086
1115
|
name = "windows_aarch64_gnullvm"
|
|
1087
|
-
version = "0.52.
|
|
1116
|
+
version = "0.52.6"
|
|
1088
1117
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1089
|
-
checksum = "
|
|
1118
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
1090
1119
|
|
|
1091
1120
|
[[package]]
|
|
1092
1121
|
name = "windows_aarch64_msvc"
|
|
@@ -1096,9 +1125,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
|
|
1096
1125
|
|
|
1097
1126
|
[[package]]
|
|
1098
1127
|
name = "windows_aarch64_msvc"
|
|
1099
|
-
version = "0.52.
|
|
1128
|
+
version = "0.52.6"
|
|
1100
1129
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1101
|
-
checksum = "
|
|
1130
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
1102
1131
|
|
|
1103
1132
|
[[package]]
|
|
1104
1133
|
name = "windows_i686_gnu"
|
|
@@ -1108,15 +1137,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
|
|
1108
1137
|
|
|
1109
1138
|
[[package]]
|
|
1110
1139
|
name = "windows_i686_gnu"
|
|
1111
|
-
version = "0.52.
|
|
1140
|
+
version = "0.52.6"
|
|
1112
1141
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1113
|
-
checksum = "
|
|
1142
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
1114
1143
|
|
|
1115
1144
|
[[package]]
|
|
1116
1145
|
name = "windows_i686_gnullvm"
|
|
1117
|
-
version = "0.52.
|
|
1146
|
+
version = "0.52.6"
|
|
1118
1147
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1119
|
-
checksum = "
|
|
1148
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
1120
1149
|
|
|
1121
1150
|
[[package]]
|
|
1122
1151
|
name = "windows_i686_msvc"
|
|
@@ -1126,9 +1155,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
|
|
1126
1155
|
|
|
1127
1156
|
[[package]]
|
|
1128
1157
|
name = "windows_i686_msvc"
|
|
1129
|
-
version = "0.52.
|
|
1158
|
+
version = "0.52.6"
|
|
1130
1159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1131
|
-
checksum = "
|
|
1160
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
1132
1161
|
|
|
1133
1162
|
[[package]]
|
|
1134
1163
|
name = "windows_x86_64_gnu"
|
|
@@ -1138,9 +1167,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
|
|
1138
1167
|
|
|
1139
1168
|
[[package]]
|
|
1140
1169
|
name = "windows_x86_64_gnu"
|
|
1141
|
-
version = "0.52.
|
|
1170
|
+
version = "0.52.6"
|
|
1142
1171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1143
|
-
checksum = "
|
|
1172
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
1144
1173
|
|
|
1145
1174
|
[[package]]
|
|
1146
1175
|
name = "windows_x86_64_gnullvm"
|
|
@@ -1150,9 +1179,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
|
|
1150
1179
|
|
|
1151
1180
|
[[package]]
|
|
1152
1181
|
name = "windows_x86_64_gnullvm"
|
|
1153
|
-
version = "0.52.
|
|
1182
|
+
version = "0.52.6"
|
|
1154
1183
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1155
|
-
checksum = "
|
|
1184
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
1156
1185
|
|
|
1157
1186
|
[[package]]
|
|
1158
1187
|
name = "windows_x86_64_msvc"
|
|
@@ -1162,9 +1191,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|
|
|
1162
1191
|
|
|
1163
1192
|
[[package]]
|
|
1164
1193
|
name = "windows_x86_64_msvc"
|
|
1165
|
-
version = "0.52.
|
|
1194
|
+
version = "0.52.6"
|
|
1166
1195
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1167
|
-
checksum = "
|
|
1196
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
1168
1197
|
|
|
1169
1198
|
[[package]]
|
|
1170
1199
|
name = "xdg"
|
data/README.md
CHANGED
|
@@ -151,11 +151,12 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
|
|
|
151
151
|
|
|
152
152
|
### Parse options
|
|
153
153
|
|
|
154
|
-
| Name
|
|
155
|
-
|
|
|
156
|
-
| `smart`
|
|
157
|
-
| `default_info_string`
|
|
158
|
-
| `
|
|
154
|
+
| Name | Description | Default |
|
|
155
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
156
|
+
| `smart` | Punctuation (quotes, full-stops and hyphens) are converted into 'smart' punctuation. | `false` |
|
|
157
|
+
| `default_info_string` | The default info string for fenced code blocks. | `""` |
|
|
158
|
+
| `relaxed_tasklist_matching` | Enables relaxing of the tasklist extension matching, allowing any non-space to be used for the "checked" state instead of only `x` and `X`. | `false` |
|
|
159
|
+
| `relaxed_autolinks` | Enable relaxing of the autolink extension parsing, allowing links to be recognized when in brackets, as well as permitting any url scheme. | `false` |
|
|
159
160
|
|
|
160
161
|
### Render options
|
|
161
162
|
|
|
@@ -163,38 +164,48 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
|
|
|
163
164
|
| -------------------- | ------------------------------------------------------------------------------------------------------ | ------- |
|
|
164
165
|
| `hardbreaks` | [Soft line breaks](http://spec.commonmark.org/0.27/#soft-line-breaks) translate into hard line breaks. | `true` |
|
|
165
166
|
| `github_pre_lang` | GitHub-style `<pre lang="xyz">` is used for fenced code blocks with info tags. | `true` |
|
|
167
|
+
| `full_info_string` | Gives info string data after a space in a `data-meta` attribute on code blocks. | `false` |
|
|
166
168
|
| `width` | The wrap column when outputting CommonMark. | `80` |
|
|
167
169
|
| `unsafe` | Allow rendering of raw HTML and potentially dangerous links. | `false` |
|
|
168
170
|
| `escape` | Escape raw HTML instead of clobbering it. | `false` |
|
|
169
171
|
| `sourcepos` | Include source position attribute in HTML and XML output. | `false` |
|
|
170
|
-
| `escaped_char_spans` | Wrap escaped characters in span tags
|
|
172
|
+
| `escaped_char_spans` | Wrap escaped characters in span tags. | `true` |
|
|
173
|
+
| `ignore_setext` | Ignores setext-style headings. | `false` |
|
|
174
|
+
| `ignore_empty_links` | Ignores empty links, leaving the Markdown text in place. | `false` |
|
|
175
|
+
| `gfm_quirks` | Outputs HTML with GFM-style quirks; namely, not nesting `<strong>` inlines. | `false` |
|
|
176
|
+
| `prefer_fenced` | Always output fenced code blocks, even where an indented one could be used. | `false` |
|
|
171
177
|
|
|
172
178
|
As well, there are several extensions which you can toggle in the same manner:
|
|
173
179
|
|
|
174
180
|
```ruby
|
|
175
181
|
Commonmarker.to_html('"Hi *there*"', options: {
|
|
176
182
|
extension: { footnotes: true, description_lists: true },
|
|
177
|
-
render: { hardbreaks: false}
|
|
183
|
+
render: { hardbreaks: false }
|
|
178
184
|
})
|
|
179
185
|
```
|
|
180
186
|
|
|
181
187
|
### Extension options
|
|
182
188
|
|
|
183
|
-
| Name
|
|
184
|
-
| ---------------------------
|
|
185
|
-
| `strikethrough`
|
|
186
|
-
| `tagfilter`
|
|
187
|
-
| `table`
|
|
188
|
-
| `autolink`
|
|
189
|
-
| `tasklist`
|
|
190
|
-
| `superscript`
|
|
191
|
-
| `header_ids`
|
|
192
|
-
| `footnotes`
|
|
193
|
-
| `description_lists`
|
|
194
|
-
| `front_matter_delimiter`
|
|
195
|
-
| `
|
|
196
|
-
| `
|
|
197
|
-
| `
|
|
189
|
+
| Name | Description | Default |
|
|
190
|
+
| --------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
191
|
+
| `strikethrough` | Enables the [strikethrough extension](https://github.github.com/gfm/#strikethrough-extension-) from the GFM spec. | `true` |
|
|
192
|
+
| `tagfilter` | Enables the [tagfilter extension](https://github.github.com/gfm/#disallowed-raw-html-extension-) from the GFM spec. | `true` |
|
|
193
|
+
| `table` | Enables the [table extension](https://github.github.com/gfm/#tables-extension-) from the GFM spec. | `true` |
|
|
194
|
+
| `autolink` | Enables the [autolink extension](https://github.github.com/gfm/#autolinks-extension-) from the GFM spec. | `true` |
|
|
195
|
+
| `tasklist` | Enables the [task list extension](https://github.github.com/gfm/#task-list-items-extension-) from the GFM spec. | `true` |
|
|
196
|
+
| `superscript` | Enables the superscript Comrak extension. | `false` |
|
|
197
|
+
| `header_ids` | Enables the header IDs Comrak extension. from the GFM spec. | `""` |
|
|
198
|
+
| `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
|
|
199
|
+
| `description_lists` | Enables the description lists extension. | `false` |
|
|
200
|
+
| `front_matter_delimiter` | Enables the front matter extension. | `""` |
|
|
201
|
+
| `multiline_block_quotes` | Enables the multiline block quotes extension. | `false` |
|
|
202
|
+
| `math_dollars`, `math_code` | Enables the math extension. | `false` |
|
|
203
|
+
| `shortcodes` | Enables the shortcodes extension. | `true` |
|
|
204
|
+
| `wikilinks_title_before_pipe` | Enables the wikilinks extension, placing the title before the dividing pipe. | `false` |
|
|
205
|
+
| `wikilinks_title_after_pipe` | Enables the shortcodes extension, placing the title after the dividing pipe. | `false` |
|
|
206
|
+
| `underline` | Enables the underline extension. | `false` |
|
|
207
|
+
| `spoiler` | Enables the spoiler extension. | `false` |
|
|
208
|
+
| `greentext` | Enables the greentext extension. | `false` |
|
|
198
209
|
|
|
199
210
|
For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).
|
|
200
211
|
|
data/ext/commonmarker/Cargo.toml
CHANGED
|
@@ -6,11 +6,11 @@ rust-version = "1.75.0"
|
|
|
6
6
|
publish = false
|
|
7
7
|
|
|
8
8
|
[dependencies]
|
|
9
|
-
magnus = { version = "0.
|
|
9
|
+
magnus = { version = "0.7", features = ["rb-sys"] }
|
|
10
10
|
rb-sys = { version = "*", default-features = false, features = [
|
|
11
11
|
"stable-api-compiled-fallback",
|
|
12
12
|
] }
|
|
13
|
-
comrak = { version = "0.
|
|
13
|
+
comrak = { version = "0.26", features = ["shortcodes"] }
|
|
14
14
|
syntect = { version = "5.2", features = ["plist-load"] }
|
|
15
15
|
typed-arena = "2.0"
|
|
16
16
|
rctree = "0.6"
|
data/ext/commonmarker/src/lib.rs
CHANGED
|
@@ -76,7 +76,7 @@ fn commonmark_to_html(args: &[Value]) -> Result<String, magnus::Error> {
|
|
|
76
76
|
))
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
fn format_options(rb_options: Option<RHash>) -> Result<comrak::Options
|
|
79
|
+
fn format_options<'c>(rb_options: Option<RHash>) -> Result<comrak::Options<'c>, magnus::Error> {
|
|
80
80
|
let mut comrak_options = ComrakOptions::default();
|
|
81
81
|
|
|
82
82
|
if let Some(rb_options) = rb_options {
|
|
@@ -238,8 +238,9 @@ impl CommonmarkerNode {
|
|
|
238
238
|
let (alignments, num_columns, num_rows, num_nonempty_cells) = kwargs.required;
|
|
239
239
|
|
|
240
240
|
let mut comrak_alignments = vec![];
|
|
241
|
-
alignments
|
|
242
|
-
|
|
241
|
+
alignments
|
|
242
|
+
.into_iter()
|
|
243
|
+
.for_each(|alignment| match alignment.to_string().as_str() {
|
|
243
244
|
"left" => {
|
|
244
245
|
comrak_alignments.push(TableAlignment::Left);
|
|
245
246
|
}
|
|
@@ -252,8 +253,7 @@ impl CommonmarkerNode {
|
|
|
252
253
|
_ => {
|
|
253
254
|
comrak_alignments.push(TableAlignment::None);
|
|
254
255
|
}
|
|
255
|
-
}
|
|
256
|
-
});
|
|
256
|
+
});
|
|
257
257
|
ComrakNodeValue::Table(NodeTable {
|
|
258
258
|
// The table alignments
|
|
259
259
|
alignments: comrak_alignments,
|
|
@@ -401,12 +401,12 @@ impl CommonmarkerNode {
|
|
|
401
401
|
|
|
402
402
|
let (code,) = kwargs.required;
|
|
403
403
|
|
|
404
|
-
match NodeShortCode::
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
match NodeShortCode::resolve(code.as_str()) {
|
|
405
|
+
Some(shortcode) => ComrakNodeValue::ShortCode(shortcode),
|
|
406
|
+
None => {
|
|
407
407
|
return Err(magnus::Error::new(
|
|
408
408
|
magnus::exception::arg_error(),
|
|
409
|
-
"
|
|
409
|
+
"could not resolve shortcode",
|
|
410
410
|
));
|
|
411
411
|
}
|
|
412
412
|
}
|
|
@@ -549,6 +549,9 @@ impl CommonmarkerNode {
|
|
|
549
549
|
ComrakNodeValue::Escaped => Symbol::new("escaped"),
|
|
550
550
|
ComrakNodeValue::Math(..) => Symbol::new("math"),
|
|
551
551
|
ComrakNodeValue::WikiLink(..) => Symbol::new("wikilink"),
|
|
552
|
+
ComrakNodeValue::Underline => Symbol::new("underline"),
|
|
553
|
+
ComrakNodeValue::SpoileredText => Symbol::new("spoilered_text"),
|
|
554
|
+
ComrakNodeValue::EscapedTag(_) => Symbol::new("escaped_tag"),
|
|
552
555
|
}
|
|
553
556
|
}
|
|
554
557
|
|
|
@@ -10,6 +10,7 @@ use crate::utils::try_convert_string;
|
|
|
10
10
|
|
|
11
11
|
const PARSE_SMART: &str = "smart";
|
|
12
12
|
const PARSE_DEFAULT_INFO_STRING: &str = "default_info_string";
|
|
13
|
+
const PARSE_RELAXED_TASKLIST_MATCHING: &str = "relaxed_tasklist_matching";
|
|
13
14
|
const PARSE_RELAXED_AUTOLINKS: &str = "relaxed_autolinks";
|
|
14
15
|
|
|
15
16
|
fn iterate_parse_options(comrak_options: &mut ComrakOptions, options_hash: RHash) {
|
|
@@ -22,6 +23,10 @@ fn iterate_parse_options(comrak_options: &mut ComrakOptions, options_hash: RHash
|
|
|
22
23
|
Ok(Cow::Borrowed(PARSE_DEFAULT_INFO_STRING)) => {
|
|
23
24
|
comrak_options.parse.default_info_string = try_convert_string(value);
|
|
24
25
|
}
|
|
26
|
+
Ok(Cow::Borrowed(PARSE_RELAXED_TASKLIST_MATCHING)) => {
|
|
27
|
+
comrak_options.parse.relaxed_tasklist_matching =
|
|
28
|
+
TryConvert::try_convert(value)?;
|
|
29
|
+
}
|
|
25
30
|
Ok(Cow::Borrowed(PARSE_RELAXED_AUTOLINKS)) => {
|
|
26
31
|
comrak_options.parse.relaxed_autolinks = TryConvert::try_convert(value)?;
|
|
27
32
|
}
|
|
@@ -34,11 +39,16 @@ fn iterate_parse_options(comrak_options: &mut ComrakOptions, options_hash: RHash
|
|
|
34
39
|
|
|
35
40
|
const RENDER_HARDBREAKS: &str = "hardbreaks";
|
|
36
41
|
const RENDER_GITHUB_PRE_LANG: &str = "github_pre_lang";
|
|
42
|
+
const RENDER_FULL_INFO_STRING: &str = "full_info_string";
|
|
37
43
|
const RENDER_WIDTH: &str = "width";
|
|
38
44
|
const RENDER_UNSAFE: &str = "unsafe";
|
|
39
45
|
const RENDER_ESCAPE: &str = "escape";
|
|
40
46
|
const RENDER_SOURCEPOS: &str = "sourcepos";
|
|
41
47
|
const RENDER_ESCAPED_CHAR_SPANS: &str = "escaped_char_spans";
|
|
48
|
+
const RENDER_IGNORE_SETEXT: &str = "ignore_setext";
|
|
49
|
+
const RENDER_IGNORE_EMPTY_LINKS: &str = "ignore_empty_links";
|
|
50
|
+
const RENDER_GFM_QUIRKS: &str = "gfm_quirks";
|
|
51
|
+
const RENDER_PREFER_FENCED: &str = "prefer_fenced";
|
|
42
52
|
|
|
43
53
|
fn iterate_render_options(comrak_options: &mut ComrakOptions, options_hash: RHash) {
|
|
44
54
|
options_hash
|
|
@@ -50,6 +60,9 @@ fn iterate_render_options(comrak_options: &mut ComrakOptions, options_hash: RHas
|
|
|
50
60
|
Ok(Cow::Borrowed(RENDER_GITHUB_PRE_LANG)) => {
|
|
51
61
|
comrak_options.render.github_pre_lang = TryConvert::try_convert(value)?;
|
|
52
62
|
}
|
|
63
|
+
Ok(Cow::Borrowed(RENDER_FULL_INFO_STRING)) => {
|
|
64
|
+
comrak_options.render.full_info_string = TryConvert::try_convert(value)?;
|
|
65
|
+
}
|
|
53
66
|
Ok(Cow::Borrowed(RENDER_WIDTH)) => {
|
|
54
67
|
comrak_options.render.width = TryConvert::try_convert(value)?;
|
|
55
68
|
}
|
|
@@ -65,6 +78,18 @@ fn iterate_render_options(comrak_options: &mut ComrakOptions, options_hash: RHas
|
|
|
65
78
|
Ok(Cow::Borrowed(RENDER_ESCAPED_CHAR_SPANS)) => {
|
|
66
79
|
comrak_options.render.escaped_char_spans = TryConvert::try_convert(value)?;
|
|
67
80
|
}
|
|
81
|
+
Ok(Cow::Borrowed(RENDER_IGNORE_SETEXT)) => {
|
|
82
|
+
comrak_options.render.ignore_setext = TryConvert::try_convert(value)?;
|
|
83
|
+
}
|
|
84
|
+
Ok(Cow::Borrowed(RENDER_IGNORE_EMPTY_LINKS)) => {
|
|
85
|
+
comrak_options.render.ignore_empty_links = TryConvert::try_convert(value)?;
|
|
86
|
+
}
|
|
87
|
+
Ok(Cow::Borrowed(RENDER_GFM_QUIRKS)) => {
|
|
88
|
+
comrak_options.render.gfm_quirks = TryConvert::try_convert(value)?;
|
|
89
|
+
}
|
|
90
|
+
Ok(Cow::Borrowed(RENDER_PREFER_FENCED)) => {
|
|
91
|
+
comrak_options.render.prefer_fenced = TryConvert::try_convert(value)?;
|
|
92
|
+
}
|
|
68
93
|
_ => {}
|
|
69
94
|
}
|
|
70
95
|
Ok(ForEach::Continue)
|
|
@@ -82,12 +107,15 @@ const EXTENSION_HEADER_IDS: &str = "header_ids";
|
|
|
82
107
|
const EXTENSION_FOOTNOTES: &str = "footnotes";
|
|
83
108
|
const EXTENSION_DESCRIPTION_LISTS: &str = "description_lists";
|
|
84
109
|
const EXTENSION_FRONT_MATTER_DELIMITER: &str = "front_matter_delimiter";
|
|
85
|
-
const EXTENSION_SHORTCODES: &str = "shortcodes";
|
|
86
110
|
const EXTENSION_MULTILINE_BLOCK_QUOTES: &str = "multiline_block_quotes";
|
|
87
111
|
const EXTENSION_MATH_DOLLARS: &str = "math_dollars";
|
|
88
112
|
const EXTENSION_MATH_CODE: &str = "math_code";
|
|
113
|
+
const EXTENSION_SHORTCODES: &str = "shortcodes";
|
|
89
114
|
const EXTENSION_WIKILINKS_TITLE_AFTER_PIPE: &str = "wikilinks_title_after_pipe";
|
|
90
115
|
const EXTENSION_WIKILINKS_TITLE_BEFORE_PIPE: &str = "wikilinks_title_before_pipe";
|
|
116
|
+
const EXTENSION_UNDERLINE: &str = "underline";
|
|
117
|
+
const EXTENSION_SPOILER: &str = "spoiler";
|
|
118
|
+
const EXTENSION_GREENTEXT: &str = "greentext";
|
|
91
119
|
|
|
92
120
|
fn iterate_extension_options(comrak_options: &mut ComrakOptions, options_hash: RHash) {
|
|
93
121
|
options_hash
|
|
@@ -127,9 +155,6 @@ fn iterate_extension_options(comrak_options: &mut ComrakOptions, options_hash: R
|
|
|
127
155
|
}
|
|
128
156
|
}
|
|
129
157
|
}
|
|
130
|
-
Ok(Cow::Borrowed(EXTENSION_SHORTCODES)) => {
|
|
131
|
-
comrak_options.extension.shortcodes = TryConvert::try_convert(value)?;
|
|
132
|
-
}
|
|
133
158
|
Ok(Cow::Borrowed(EXTENSION_MULTILINE_BLOCK_QUOTES)) => {
|
|
134
159
|
comrak_options.extension.multiline_block_quotes =
|
|
135
160
|
TryConvert::try_convert(value)?;
|
|
@@ -140,6 +165,9 @@ fn iterate_extension_options(comrak_options: &mut ComrakOptions, options_hash: R
|
|
|
140
165
|
Ok(Cow::Borrowed(EXTENSION_MATH_CODE)) => {
|
|
141
166
|
comrak_options.extension.math_code = TryConvert::try_convert(value)?;
|
|
142
167
|
}
|
|
168
|
+
Ok(Cow::Borrowed(EXTENSION_SHORTCODES)) => {
|
|
169
|
+
comrak_options.extension.shortcodes = TryConvert::try_convert(value)?;
|
|
170
|
+
}
|
|
143
171
|
Ok(Cow::Borrowed(EXTENSION_WIKILINKS_TITLE_AFTER_PIPE)) => {
|
|
144
172
|
comrak_options.extension.wikilinks_title_after_pipe =
|
|
145
173
|
TryConvert::try_convert(value)?;
|
|
@@ -148,6 +176,15 @@ fn iterate_extension_options(comrak_options: &mut ComrakOptions, options_hash: R
|
|
|
148
176
|
comrak_options.extension.wikilinks_title_before_pipe =
|
|
149
177
|
TryConvert::try_convert(value)?;
|
|
150
178
|
}
|
|
179
|
+
Ok(Cow::Borrowed(EXTENSION_UNDERLINE)) => {
|
|
180
|
+
comrak_options.extension.underline = TryConvert::try_convert(value)?;
|
|
181
|
+
}
|
|
182
|
+
Ok(Cow::Borrowed(EXTENSION_SPOILER)) => {
|
|
183
|
+
comrak_options.extension.spoiler = TryConvert::try_convert(value)?;
|
|
184
|
+
}
|
|
185
|
+
Ok(Cow::Borrowed(EXTENSION_GREENTEXT)) => {
|
|
186
|
+
comrak_options.extension.greentext = TryConvert::try_convert(value)?;
|
|
187
|
+
}
|
|
151
188
|
_ => {}
|
|
152
189
|
}
|
|
153
190
|
Ok(ForEach::Continue)
|
data/lib/commonmarker/config.rb
CHANGED
|
@@ -8,16 +8,22 @@ module Commonmarker
|
|
|
8
8
|
parse: {
|
|
9
9
|
smart: false,
|
|
10
10
|
default_info_string: "",
|
|
11
|
+
relaxed_tasklist_matching: false,
|
|
11
12
|
relaxed_autolinks: false,
|
|
12
13
|
}.freeze,
|
|
13
14
|
render: {
|
|
14
15
|
hardbreaks: true,
|
|
15
16
|
github_pre_lang: true,
|
|
17
|
+
full_info_string: false,
|
|
16
18
|
width: 80,
|
|
17
19
|
unsafe: false,
|
|
18
20
|
escape: false,
|
|
19
21
|
sourcepos: false,
|
|
20
22
|
escaped_char_spans: true,
|
|
23
|
+
ignore_setext: false,
|
|
24
|
+
ignore_empty_links: false,
|
|
25
|
+
gfm_quirks: false,
|
|
26
|
+
prefer_fenced: false,
|
|
21
27
|
}.freeze,
|
|
22
28
|
extension: {
|
|
23
29
|
strikethrough: true,
|
|
@@ -30,12 +36,15 @@ module Commonmarker
|
|
|
30
36
|
footnotes: false,
|
|
31
37
|
description_lists: false,
|
|
32
38
|
front_matter_delimiter: "",
|
|
33
|
-
shortcodes: true,
|
|
34
39
|
multiline_block_quotes: false,
|
|
35
40
|
math_dollars: false,
|
|
36
41
|
math_code: false,
|
|
42
|
+
shortcodes: true,
|
|
37
43
|
wikilinks_title_before_pipe: false,
|
|
38
44
|
wikilinks_title_after_pipe: false,
|
|
45
|
+
underline: false,
|
|
46
|
+
spoiler: false,
|
|
47
|
+
greentext: false,
|
|
39
48
|
},
|
|
40
49
|
format: [:html].freeze,
|
|
41
50
|
}.freeze
|
data/lib/commonmarker/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: commonmarker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen Torikian
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2024-
|
|
12
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|