gitlab-glfm-markdown 0.0.42-aarch64-linux-gnu → 0.0.45-aarch64-linux-gnu
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 +77 -27
- data/README.md +2 -2
- data/ext/gitlab_glfm_markdown/Cargo.lock +77 -27
- data/ext/gitlab_glfm_markdown/Cargo.toml +2 -2
- data/ext/gitlab_glfm_markdown/src/formatter.rs +10 -5
- data/ext/gitlab_glfm_markdown/src/glfm.rs +3 -2
- data/ext/gitlab_glfm_markdown/src/main.rs +5 -5
- data/lib/gitlab-glfm-markdown.rb +0 -4
- data/lib/gitlab_glfm_markdown/3.1/gitlab_glfm_markdown.so +0 -0
- data/lib/gitlab_glfm_markdown/3.2/gitlab_glfm_markdown.so +0 -0
- data/lib/gitlab_glfm_markdown/3.3/gitlab_glfm_markdown.so +0 -0
- data/lib/gitlab_glfm_markdown/3.4/gitlab_glfm_markdown.so +0 -0
- data/lib/gitlab_glfm_markdown/4.0/gitlab_glfm_markdown.so +0 -0
- data/lib/gitlab_glfm_markdown/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: 0621eb1f68f534f0d9b5d50eceb9342abc18774dd42797bca8604fa280e9c143
|
|
4
|
+
data.tar.gz: 69a0322ebf0a4cbaeb3b6003c99d2ef0c2b2f5c68362c86c8495459107ab3313
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed660df9d87d80ea24bacdaa19d41fe66539ddb18d85199c20fe350f9540fc414e9885026c5082e63d1d6392d7f89b4e203208cceea1d4c9d548d36d2968d539
|
|
7
|
+
data.tar.gz: fe96b16b2fccf629226ea3cb02866000922767e3c6672c325fe794c37a84f48a2febf9f45bf920582ccb22b57ed07529d84a91ba79228352025ef1c6eb6e1f76
|
data/Cargo.lock
CHANGED
|
@@ -97,7 +97,7 @@ dependencies = [
|
|
|
97
97
|
"regex",
|
|
98
98
|
"rustc-hash",
|
|
99
99
|
"shlex 1.3.0",
|
|
100
|
-
"syn",
|
|
100
|
+
"syn 2.0.104",
|
|
101
101
|
]
|
|
102
102
|
|
|
103
103
|
[[package]]
|
|
@@ -203,7 +203,7 @@ dependencies = [
|
|
|
203
203
|
"heck",
|
|
204
204
|
"proc-macro2",
|
|
205
205
|
"quote",
|
|
206
|
-
"syn",
|
|
206
|
+
"syn 2.0.104",
|
|
207
207
|
]
|
|
208
208
|
|
|
209
209
|
[[package]]
|
|
@@ -220,16 +220,16 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
|
220
220
|
|
|
221
221
|
[[package]]
|
|
222
222
|
name = "comrak"
|
|
223
|
-
version = "0.
|
|
223
|
+
version = "0.56.0"
|
|
224
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
-
checksum = "
|
|
225
|
+
checksum = "2544c4d6b6da7d54e95ac2833b464bf3dffa0666237868f2bf4ec5e11c9ba8cc"
|
|
226
226
|
dependencies = [
|
|
227
227
|
"caseless",
|
|
228
228
|
"emojis",
|
|
229
229
|
"entities",
|
|
230
230
|
"finl_unicode",
|
|
231
|
-
"
|
|
232
|
-
"phf",
|
|
231
|
+
"memchr-n",
|
|
232
|
+
"phf 0.14.0",
|
|
233
233
|
"phf_codegen",
|
|
234
234
|
"rustc-hash",
|
|
235
235
|
"smallvec",
|
|
@@ -263,11 +263,11 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
|
263
263
|
|
|
264
264
|
[[package]]
|
|
265
265
|
name = "emojis"
|
|
266
|
-
version = "0.
|
|
266
|
+
version = "0.9.0"
|
|
267
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
-
checksum = "
|
|
268
|
+
checksum = "0b1514ced566c94991ed9563258ecf61e311fd773bf0a3f20606830386bf66e3"
|
|
269
269
|
dependencies = [
|
|
270
|
-
"phf",
|
|
270
|
+
"phf 0.13.1",
|
|
271
271
|
]
|
|
272
272
|
|
|
273
273
|
[[package]]
|
|
@@ -298,6 +298,23 @@ version = "2.4.1"
|
|
|
298
298
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
299
|
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
300
300
|
|
|
301
|
+
[[package]]
|
|
302
|
+
name = "fearless_simd"
|
|
303
|
+
version = "1.0.0"
|
|
304
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
305
|
+
checksum = "f3772b63c40606beea8fe1f7b06a60de27ceb9bfc2d9dad3427368ca41dc7e62"
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "fearless_simd_macros"
|
|
309
|
+
version = "0.1.0"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "3e91d94c6885390b81782d7ee60fd6583b33907333a8b340de25ccf468353315"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"proc-macro2",
|
|
314
|
+
"quote",
|
|
315
|
+
"syn 3.0.6",
|
|
316
|
+
]
|
|
317
|
+
|
|
301
318
|
[[package]]
|
|
302
319
|
name = "find-msvc-tools"
|
|
303
320
|
version = "0.1.9"
|
|
@@ -328,7 +345,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
|
328
345
|
|
|
329
346
|
[[package]]
|
|
330
347
|
name = "gitlab-glfm-markdown"
|
|
331
|
-
version = "0.0.
|
|
348
|
+
version = "0.0.45"
|
|
332
349
|
dependencies = [
|
|
333
350
|
"clap",
|
|
334
351
|
"comrak",
|
|
@@ -389,12 +406,6 @@ version = "1.0.15"
|
|
|
389
406
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
407
|
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
|
391
408
|
|
|
392
|
-
[[package]]
|
|
393
|
-
name = "jetscii"
|
|
394
|
-
version = "0.5.3"
|
|
395
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
-
checksum = "47f142fe24a9c9944451e8349de0a56af5f3e7226dc46f3ed4d4ecc0b85af75e"
|
|
397
|
-
|
|
398
409
|
[[package]]
|
|
399
410
|
name = "lazy_static"
|
|
400
411
|
version = "1.5.0"
|
|
@@ -443,7 +454,7 @@ checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
|
443
454
|
dependencies = [
|
|
444
455
|
"proc-macro2",
|
|
445
456
|
"quote",
|
|
446
|
-
"syn",
|
|
457
|
+
"syn 2.0.104",
|
|
447
458
|
]
|
|
448
459
|
|
|
449
460
|
[[package]]
|
|
@@ -452,6 +463,16 @@ version = "2.7.5"
|
|
|
452
463
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
453
464
|
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
|
454
465
|
|
|
466
|
+
[[package]]
|
|
467
|
+
name = "memchr-n"
|
|
468
|
+
version = "0.1.9"
|
|
469
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
470
|
+
checksum = "1805571b8e7b1284ad43f27c88477840c1c0e5807c150021ac83d2228806540e"
|
|
471
|
+
dependencies = [
|
|
472
|
+
"fearless_simd",
|
|
473
|
+
"fearless_simd_macros",
|
|
474
|
+
]
|
|
475
|
+
|
|
455
476
|
[[package]]
|
|
456
477
|
name = "minimal-lexical"
|
|
457
478
|
version = "0.2.1"
|
|
@@ -523,28 +544,37 @@ version = "0.13.1"
|
|
|
523
544
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
545
|
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
|
525
546
|
dependencies = [
|
|
526
|
-
"phf_shared",
|
|
547
|
+
"phf_shared 0.13.1",
|
|
548
|
+
]
|
|
549
|
+
|
|
550
|
+
[[package]]
|
|
551
|
+
name = "phf"
|
|
552
|
+
version = "0.14.0"
|
|
553
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
554
|
+
checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6"
|
|
555
|
+
dependencies = [
|
|
556
|
+
"phf_shared 0.14.0",
|
|
527
557
|
"serde",
|
|
528
558
|
]
|
|
529
559
|
|
|
530
560
|
[[package]]
|
|
531
561
|
name = "phf_codegen"
|
|
532
|
-
version = "0.
|
|
562
|
+
version = "0.14.0"
|
|
533
563
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
534
|
-
checksum = "
|
|
564
|
+
checksum = "41b585a510fb76fdebead6897982ef2a03a21d8e6cbcca904999742a4afc6ffe"
|
|
535
565
|
dependencies = [
|
|
536
566
|
"phf_generator",
|
|
537
|
-
"phf_shared",
|
|
567
|
+
"phf_shared 0.14.0",
|
|
538
568
|
]
|
|
539
569
|
|
|
540
570
|
[[package]]
|
|
541
571
|
name = "phf_generator"
|
|
542
|
-
version = "0.
|
|
572
|
+
version = "0.14.0"
|
|
543
573
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
-
checksum = "
|
|
574
|
+
checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100"
|
|
545
575
|
dependencies = [
|
|
546
576
|
"fastrand",
|
|
547
|
-
"phf_shared",
|
|
577
|
+
"phf_shared 0.14.0",
|
|
548
578
|
]
|
|
549
579
|
|
|
550
580
|
[[package]]
|
|
@@ -556,6 +586,15 @@ dependencies = [
|
|
|
556
586
|
"siphasher",
|
|
557
587
|
]
|
|
558
588
|
|
|
589
|
+
[[package]]
|
|
590
|
+
name = "phf_shared"
|
|
591
|
+
version = "0.14.0"
|
|
592
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
593
|
+
checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89"
|
|
594
|
+
dependencies = [
|
|
595
|
+
"siphasher",
|
|
596
|
+
]
|
|
597
|
+
|
|
559
598
|
[[package]]
|
|
560
599
|
name = "pkg-config"
|
|
561
600
|
version = "0.3.33"
|
|
@@ -629,7 +668,7 @@ dependencies = [
|
|
|
629
668
|
"quote",
|
|
630
669
|
"regex",
|
|
631
670
|
"shell-words",
|
|
632
|
-
"syn",
|
|
671
|
+
"syn 2.0.104",
|
|
633
672
|
]
|
|
634
673
|
|
|
635
674
|
[[package]]
|
|
@@ -711,7 +750,7 @@ checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
|
|
|
711
750
|
dependencies = [
|
|
712
751
|
"proc-macro2",
|
|
713
752
|
"quote",
|
|
714
|
-
"syn",
|
|
753
|
+
"syn 2.0.104",
|
|
715
754
|
]
|
|
716
755
|
|
|
717
756
|
[[package]]
|
|
@@ -784,6 +823,17 @@ dependencies = [
|
|
|
784
823
|
"unicode-ident",
|
|
785
824
|
]
|
|
786
825
|
|
|
826
|
+
[[package]]
|
|
827
|
+
name = "syn"
|
|
828
|
+
version = "3.0.6"
|
|
829
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
830
|
+
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
|
831
|
+
dependencies = [
|
|
832
|
+
"proc-macro2",
|
|
833
|
+
"quote",
|
|
834
|
+
"unicode-ident",
|
|
835
|
+
]
|
|
836
|
+
|
|
787
837
|
[[package]]
|
|
788
838
|
name = "syntect"
|
|
789
839
|
version = "5.2.0"
|
|
@@ -830,7 +880,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
|
830
880
|
dependencies = [
|
|
831
881
|
"proc-macro2",
|
|
832
882
|
"quote",
|
|
833
|
-
"syn",
|
|
883
|
+
"syn 2.0.104",
|
|
834
884
|
]
|
|
835
885
|
|
|
836
886
|
[[package]]
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/releases)
|
|
5
5
|
|
|
6
6
|
Implements GLFM (as used by GitLab) using the Rust-based Markdown parser
|
|
7
|
-
[Comrak](https://github.com/kivikakk/comrak) (0.
|
|
7
|
+
[Comrak](https://github.com/kivikakk/comrak) (0.56.0), providing a Ruby interface.
|
|
8
8
|
|
|
9
9
|
This project is still in constant flux, so interfaces and functionality can change at any time.
|
|
10
10
|
|
|
@@ -57,6 +57,7 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
|
|
|
57
57
|
| `hardbreaks` | Treat newlines as hard line breaks |
|
|
58
58
|
| `header_accessibility` | Use new header/anchor combination in HTML output, per [!112](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/merge_requests/112). Requires `header_id_prefix` to be set. |
|
|
59
59
|
| `header_id_prefix <PREFIX>` | Enable the `header-id` extension, with the given ID prefix |
|
|
60
|
+
| `header_id_prefix_in_href` | Include `header_id_prefix` in the heading anchor's `href`. Requires `header_id_prefix` to be set. |
|
|
60
61
|
| `header_slug_prefix <PREFIX>` | Prefix to prepend to heading anchor slugs. When set, slugs become `{header_slug_prefix}{anchorized_text}`. Requires `header_accessibility` to be set. |
|
|
61
62
|
| `ignore_empty_links` | Ignore empty links in input |
|
|
62
63
|
| `ignore_setext` | Ignore setext headings in input |
|
|
@@ -74,7 +75,6 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
|
|
|
74
75
|
| `strikethrough` | Enable the `strikethrough` extension |
|
|
75
76
|
| `superscript` | Enable the `superscript` extension |
|
|
76
77
|
| `table` | Enable the `table` extension |
|
|
77
|
-
| `tagfilter` | Enable the `tagfilter` extension |
|
|
78
78
|
| `tasklist_classes` | Output classes on tasklist elements so that they can be styled with CSS |
|
|
79
79
|
| `tasklist_in_table` | Enables parsing tasklist items within tables when they're the only content of a table cell |
|
|
80
80
|
| `tasklist` | Enable the `tasklist` extension |
|
|
@@ -97,7 +97,7 @@ dependencies = [
|
|
|
97
97
|
"regex",
|
|
98
98
|
"rustc-hash",
|
|
99
99
|
"shlex 1.3.0",
|
|
100
|
-
"syn",
|
|
100
|
+
"syn 2.0.104",
|
|
101
101
|
]
|
|
102
102
|
|
|
103
103
|
[[package]]
|
|
@@ -203,7 +203,7 @@ dependencies = [
|
|
|
203
203
|
"heck",
|
|
204
204
|
"proc-macro2",
|
|
205
205
|
"quote",
|
|
206
|
-
"syn",
|
|
206
|
+
"syn 2.0.104",
|
|
207
207
|
]
|
|
208
208
|
|
|
209
209
|
[[package]]
|
|
@@ -220,16 +220,16 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
|
220
220
|
|
|
221
221
|
[[package]]
|
|
222
222
|
name = "comrak"
|
|
223
|
-
version = "0.
|
|
223
|
+
version = "0.56.0"
|
|
224
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
-
checksum = "
|
|
225
|
+
checksum = "2544c4d6b6da7d54e95ac2833b464bf3dffa0666237868f2bf4ec5e11c9ba8cc"
|
|
226
226
|
dependencies = [
|
|
227
227
|
"caseless",
|
|
228
228
|
"emojis",
|
|
229
229
|
"entities",
|
|
230
230
|
"finl_unicode",
|
|
231
|
-
"
|
|
232
|
-
"phf",
|
|
231
|
+
"memchr-n",
|
|
232
|
+
"phf 0.14.0",
|
|
233
233
|
"phf_codegen",
|
|
234
234
|
"rustc-hash",
|
|
235
235
|
"smallvec",
|
|
@@ -263,11 +263,11 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
|
263
263
|
|
|
264
264
|
[[package]]
|
|
265
265
|
name = "emojis"
|
|
266
|
-
version = "0.
|
|
266
|
+
version = "0.9.0"
|
|
267
267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
-
checksum = "
|
|
268
|
+
checksum = "0b1514ced566c94991ed9563258ecf61e311fd773bf0a3f20606830386bf66e3"
|
|
269
269
|
dependencies = [
|
|
270
|
-
"phf",
|
|
270
|
+
"phf 0.13.1",
|
|
271
271
|
]
|
|
272
272
|
|
|
273
273
|
[[package]]
|
|
@@ -298,6 +298,23 @@ version = "2.4.1"
|
|
|
298
298
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
299
|
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
300
300
|
|
|
301
|
+
[[package]]
|
|
302
|
+
name = "fearless_simd"
|
|
303
|
+
version = "1.0.0"
|
|
304
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
305
|
+
checksum = "f3772b63c40606beea8fe1f7b06a60de27ceb9bfc2d9dad3427368ca41dc7e62"
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "fearless_simd_macros"
|
|
309
|
+
version = "0.1.0"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "3e91d94c6885390b81782d7ee60fd6583b33907333a8b340de25ccf468353315"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"proc-macro2",
|
|
314
|
+
"quote",
|
|
315
|
+
"syn 3.0.6",
|
|
316
|
+
]
|
|
317
|
+
|
|
301
318
|
[[package]]
|
|
302
319
|
name = "find-msvc-tools"
|
|
303
320
|
version = "0.1.9"
|
|
@@ -328,7 +345,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
|
328
345
|
|
|
329
346
|
[[package]]
|
|
330
347
|
name = "gitlab-glfm-markdown"
|
|
331
|
-
version = "0.0.
|
|
348
|
+
version = "0.0.45"
|
|
332
349
|
dependencies = [
|
|
333
350
|
"clap",
|
|
334
351
|
"comrak",
|
|
@@ -389,12 +406,6 @@ version = "1.0.15"
|
|
|
389
406
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
407
|
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
|
391
408
|
|
|
392
|
-
[[package]]
|
|
393
|
-
name = "jetscii"
|
|
394
|
-
version = "0.5.3"
|
|
395
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
-
checksum = "47f142fe24a9c9944451e8349de0a56af5f3e7226dc46f3ed4d4ecc0b85af75e"
|
|
397
|
-
|
|
398
409
|
[[package]]
|
|
399
410
|
name = "lazy_static"
|
|
400
411
|
version = "1.5.0"
|
|
@@ -443,7 +454,7 @@ checksum = "47607461fd8e1513cb4f2076c197d8092d921a1ea75bd08af97398f593751892"
|
|
|
443
454
|
dependencies = [
|
|
444
455
|
"proc-macro2",
|
|
445
456
|
"quote",
|
|
446
|
-
"syn",
|
|
457
|
+
"syn 2.0.104",
|
|
447
458
|
]
|
|
448
459
|
|
|
449
460
|
[[package]]
|
|
@@ -452,6 +463,16 @@ version = "2.7.5"
|
|
|
452
463
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
453
464
|
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
|
|
454
465
|
|
|
466
|
+
[[package]]
|
|
467
|
+
name = "memchr-n"
|
|
468
|
+
version = "0.1.9"
|
|
469
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
470
|
+
checksum = "1805571b8e7b1284ad43f27c88477840c1c0e5807c150021ac83d2228806540e"
|
|
471
|
+
dependencies = [
|
|
472
|
+
"fearless_simd",
|
|
473
|
+
"fearless_simd_macros",
|
|
474
|
+
]
|
|
475
|
+
|
|
455
476
|
[[package]]
|
|
456
477
|
name = "minimal-lexical"
|
|
457
478
|
version = "0.2.1"
|
|
@@ -523,28 +544,37 @@ version = "0.13.1"
|
|
|
523
544
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
545
|
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
|
525
546
|
dependencies = [
|
|
526
|
-
"phf_shared",
|
|
547
|
+
"phf_shared 0.13.1",
|
|
548
|
+
]
|
|
549
|
+
|
|
550
|
+
[[package]]
|
|
551
|
+
name = "phf"
|
|
552
|
+
version = "0.14.0"
|
|
553
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
554
|
+
checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6"
|
|
555
|
+
dependencies = [
|
|
556
|
+
"phf_shared 0.14.0",
|
|
527
557
|
"serde",
|
|
528
558
|
]
|
|
529
559
|
|
|
530
560
|
[[package]]
|
|
531
561
|
name = "phf_codegen"
|
|
532
|
-
version = "0.
|
|
562
|
+
version = "0.14.0"
|
|
533
563
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
534
|
-
checksum = "
|
|
564
|
+
checksum = "41b585a510fb76fdebead6897982ef2a03a21d8e6cbcca904999742a4afc6ffe"
|
|
535
565
|
dependencies = [
|
|
536
566
|
"phf_generator",
|
|
537
|
-
"phf_shared",
|
|
567
|
+
"phf_shared 0.14.0",
|
|
538
568
|
]
|
|
539
569
|
|
|
540
570
|
[[package]]
|
|
541
571
|
name = "phf_generator"
|
|
542
|
-
version = "0.
|
|
572
|
+
version = "0.14.0"
|
|
543
573
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
-
checksum = "
|
|
574
|
+
checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100"
|
|
545
575
|
dependencies = [
|
|
546
576
|
"fastrand",
|
|
547
|
-
"phf_shared",
|
|
577
|
+
"phf_shared 0.14.0",
|
|
548
578
|
]
|
|
549
579
|
|
|
550
580
|
[[package]]
|
|
@@ -556,6 +586,15 @@ dependencies = [
|
|
|
556
586
|
"siphasher",
|
|
557
587
|
]
|
|
558
588
|
|
|
589
|
+
[[package]]
|
|
590
|
+
name = "phf_shared"
|
|
591
|
+
version = "0.14.0"
|
|
592
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
593
|
+
checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89"
|
|
594
|
+
dependencies = [
|
|
595
|
+
"siphasher",
|
|
596
|
+
]
|
|
597
|
+
|
|
559
598
|
[[package]]
|
|
560
599
|
name = "pkg-config"
|
|
561
600
|
version = "0.3.33"
|
|
@@ -629,7 +668,7 @@ dependencies = [
|
|
|
629
668
|
"quote",
|
|
630
669
|
"regex",
|
|
631
670
|
"shell-words",
|
|
632
|
-
"syn",
|
|
671
|
+
"syn 2.0.104",
|
|
633
672
|
]
|
|
634
673
|
|
|
635
674
|
[[package]]
|
|
@@ -711,7 +750,7 @@ checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
|
|
|
711
750
|
dependencies = [
|
|
712
751
|
"proc-macro2",
|
|
713
752
|
"quote",
|
|
714
|
-
"syn",
|
|
753
|
+
"syn 2.0.104",
|
|
715
754
|
]
|
|
716
755
|
|
|
717
756
|
[[package]]
|
|
@@ -784,6 +823,17 @@ dependencies = [
|
|
|
784
823
|
"unicode-ident",
|
|
785
824
|
]
|
|
786
825
|
|
|
826
|
+
[[package]]
|
|
827
|
+
name = "syn"
|
|
828
|
+
version = "3.0.6"
|
|
829
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
830
|
+
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
|
831
|
+
dependencies = [
|
|
832
|
+
"proc-macro2",
|
|
833
|
+
"quote",
|
|
834
|
+
"unicode-ident",
|
|
835
|
+
]
|
|
836
|
+
|
|
787
837
|
[[package]]
|
|
788
838
|
name = "syntect"
|
|
789
839
|
version = "5.2.0"
|
|
@@ -830,7 +880,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
|
830
880
|
dependencies = [
|
|
831
881
|
"proc-macro2",
|
|
832
882
|
"quote",
|
|
833
|
-
"syn",
|
|
883
|
+
"syn 2.0.104",
|
|
834
884
|
]
|
|
835
885
|
|
|
836
886
|
[[package]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "gitlab-glfm-markdown"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.45"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["digitalmoksha <bwalker@gitlab.com>", "Asherah Connor <aconnor@gitlab.com>"]
|
|
6
6
|
description = "GitLab Flavored Markdown parser and formatter. 100% CommonMark-compatible."
|
|
@@ -15,7 +15,7 @@ required-features = ["cli"]
|
|
|
15
15
|
|
|
16
16
|
[dependencies]
|
|
17
17
|
clap = { version = "=4.4.18", optional = true, features = ["derive", "string"] }
|
|
18
|
-
comrak = { version = "0.
|
|
18
|
+
comrak = { version = "0.56.0", default-features = false, features = ["shortcodes"] }
|
|
19
19
|
magnus = "0.8.2"
|
|
20
20
|
rb-sys = { version = "0.9.124", default-features = false, features = ["stable-api-compiled-fallback"] }
|
|
21
21
|
regex = "1.11.1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
use std::fmt::{self, Write};
|
|
2
2
|
use std::sync::LazyLock;
|
|
3
3
|
|
|
4
|
-
use comrak::html::{
|
|
4
|
+
use comrak::html::{format_node_default, render_sourcepos, ChildRendering, Context};
|
|
5
5
|
use comrak::nodes::{
|
|
6
6
|
ListType, NodeHeading, NodeLink, NodeList, NodeTaskItem, NodeValue, TableAlignment,
|
|
7
7
|
};
|
|
@@ -487,7 +487,7 @@ fn render_heading(
|
|
|
487
487
|
write!(context, "<h{}", nh.level)?;
|
|
488
488
|
|
|
489
489
|
if let Some(ref prefix) = context.options.extension.header_id_prefix {
|
|
490
|
-
let text_content = collect_text(
|
|
490
|
+
let text_content = node.collect_text();
|
|
491
491
|
let id = context.anchorizer.anchorize(&text_content);
|
|
492
492
|
let id = if let Some(ref slug_prefix) = context.user.header_slug_prefix {
|
|
493
493
|
format!("{slug_prefix}{id}")
|
|
@@ -501,12 +501,17 @@ fn render_heading(
|
|
|
501
501
|
render_sourcepos(context, node)?;
|
|
502
502
|
context.write_str(">")?;
|
|
503
503
|
} else {
|
|
504
|
-
if context.options.extension.header_id_prefix
|
|
504
|
+
if let Some(ref prefix) = context.options.extension.header_id_prefix {
|
|
505
|
+
let href_prefix = if context.options.extension.header_id_prefix_in_href {
|
|
506
|
+
prefix.clone()
|
|
507
|
+
} else {
|
|
508
|
+
String::new()
|
|
509
|
+
};
|
|
505
510
|
let id = context.user.last_heading.take().unwrap();
|
|
506
|
-
let text_content = collect_text(
|
|
511
|
+
let text_content = node.collect_text();
|
|
507
512
|
write!(
|
|
508
513
|
context,
|
|
509
|
-
r##"<a href="#{id}" aria-label="Link to heading '"##
|
|
514
|
+
r##"<a href="#{href_prefix}{id}" aria-label="Link to heading '"##
|
|
510
515
|
)?;
|
|
511
516
|
context.escape(&text_content)?;
|
|
512
517
|
context.write_str(r#"'" data-heading-content=""#)?;
|
|
@@ -30,6 +30,8 @@ pub struct RenderOptions {
|
|
|
30
30
|
/// Requires `header_id_prefix` to generate heading anchors.
|
|
31
31
|
pub header_accessibility: bool,
|
|
32
32
|
pub header_id_prefix: Option<String>,
|
|
33
|
+
/// Include `header_id_prefix` in the heading anchor's `href`.
|
|
34
|
+
pub header_id_prefix_in_href: bool,
|
|
33
35
|
/// Prefix to prepend to heading anchor slugs.
|
|
34
36
|
/// When set, slugs become `{header_slug_prefix}{anchorized_text}`.
|
|
35
37
|
/// Requires `header_accessibility` to be set.
|
|
@@ -57,7 +59,6 @@ pub struct RenderOptions {
|
|
|
57
59
|
pub superscript: bool,
|
|
58
60
|
// pub syntax_highlighting: String,
|
|
59
61
|
pub table: bool,
|
|
60
|
-
pub tagfilter: bool,
|
|
61
62
|
pub tasklist: bool,
|
|
62
63
|
pub tasklist_classes: bool,
|
|
63
64
|
pub tasklist_in_table: bool,
|
|
@@ -79,6 +80,7 @@ impl From<&RenderOptions> for comrak::Options<'_> {
|
|
|
79
80
|
// comrak_options.extension.front_matter_delimiter = options.front_matter_delimiter;
|
|
80
81
|
comrak_options.extension.greentext = options.greentext;
|
|
81
82
|
comrak_options.extension.header_id_prefix = options.header_id_prefix.clone();
|
|
83
|
+
comrak_options.extension.header_id_prefix_in_href = options.header_id_prefix_in_href;
|
|
82
84
|
comrak_options.extension.math_code = options.math_code;
|
|
83
85
|
comrak_options.extension.math_dollars = options.math_dollars;
|
|
84
86
|
comrak_options.extension.multiline_block_quotes = options.multiline_block_quotes;
|
|
@@ -88,7 +90,6 @@ impl From<&RenderOptions> for comrak::Options<'_> {
|
|
|
88
90
|
comrak_options.extension.subscript = options.subscript;
|
|
89
91
|
comrak_options.extension.superscript = options.superscript;
|
|
90
92
|
comrak_options.extension.table = options.table;
|
|
91
|
-
comrak_options.extension.tagfilter = options.tagfilter;
|
|
92
93
|
comrak_options.extension.tasklist = options.tasklist;
|
|
93
94
|
comrak_options.extension.underline = options.underline;
|
|
94
95
|
comrak_options.extension.wikilinks_title_after_pipe = options.wikilinks_title_after_pipe;
|
|
@@ -93,6 +93,10 @@ struct Args {
|
|
|
93
93
|
#[arg(long, value_name = "PREFIX")]
|
|
94
94
|
header_id_prefix: Option<String>,
|
|
95
95
|
|
|
96
|
+
/// Include the header ID prefix in the heading anchor's href.
|
|
97
|
+
#[arg(long)]
|
|
98
|
+
header_id_prefix_in_href: bool,
|
|
99
|
+
|
|
96
100
|
/// Prefix to prepend to heading anchor slugs.
|
|
97
101
|
/// When set, slugs become `{header_slug_prefix}{anchorized_text}`.
|
|
98
102
|
#[arg(long, value_name = "PREFIX")]
|
|
@@ -172,10 +176,6 @@ struct Args {
|
|
|
172
176
|
#[arg(long)]
|
|
173
177
|
table: bool,
|
|
174
178
|
|
|
175
|
-
/// Enable 'tagfilter' extension
|
|
176
|
-
#[arg(long)]
|
|
177
|
-
tagfilter: bool,
|
|
178
|
-
|
|
179
179
|
/// Enable 'tasklist' extension
|
|
180
180
|
#[arg(long)]
|
|
181
181
|
tasklist: bool,
|
|
@@ -239,6 +239,7 @@ fn main() {
|
|
|
239
239
|
hardbreaks: cli.hardbreaks,
|
|
240
240
|
header_accessibility: cli.header_accessibility,
|
|
241
241
|
header_id_prefix: cli.header_id_prefix,
|
|
242
|
+
header_id_prefix_in_href: cli.header_id_prefix_in_href,
|
|
242
243
|
header_slug_prefix: cli.header_slug_prefix,
|
|
243
244
|
ignore_empty_links: cli.ignore_empty_links,
|
|
244
245
|
ignore_setext: cli.ignore_setext,
|
|
@@ -258,7 +259,6 @@ fn main() {
|
|
|
258
259
|
superscript: cli.superscript,
|
|
259
260
|
// syntax_highlighting:
|
|
260
261
|
table: cli.table,
|
|
261
|
-
tagfilter: cli.tagfilter,
|
|
262
262
|
tasklist: cli.tasklist,
|
|
263
263
|
tasklist_classes: cli.tasklist_classes,
|
|
264
264
|
tasklist_in_table: cli.tasklist_in_table,
|
data/lib/gitlab-glfm-markdown.rb
CHANGED
|
@@ -24,7 +24,6 @@ module GLFMMarkdown
|
|
|
24
24
|
smart: false,
|
|
25
25
|
strikethrough: true,
|
|
26
26
|
table: true,
|
|
27
|
-
tagfilter: false,
|
|
28
27
|
tasklist: true,
|
|
29
28
|
tasklist_classes: true,
|
|
30
29
|
unsafe: true
|
|
@@ -38,9 +37,6 @@ module GLFMMarkdown
|
|
|
38
37
|
|
|
39
38
|
default_options = options[:glfm] ? GLFM_DEFAULT_OPTIONS : {}
|
|
40
39
|
|
|
41
|
-
# if you need to modify `options`, use `.merge` as `options` could be frozen
|
|
42
|
-
options = options.merge(unsafe: true) if options[:tagfilter]
|
|
43
|
-
|
|
44
40
|
render_to_html_rs(markdown, default_options.merge(options))
|
|
45
41
|
end
|
|
46
42
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab-glfm-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.45
|
|
5
5
|
platform: aarch64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Walker
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-07
|
|
12
|
+
date: 2026-10-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|