commonmarker 2.4.1 → 2.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aba90fb4d428beb471fe6463fb5537f916b474dd8278ed30e705bc59a8309b4
4
- data.tar.gz: 7f86c62b9da08c82772dfc3d8da92adaf6808bb93848b5f1071e977b5da71942
3
+ metadata.gz: d9d6790deaf239d395fa86497f109ce5a2a4a32de0aa91b73ac8773f22b6dc81
4
+ data.tar.gz: 448f8817cda95d0d75dabf0bf4205b35af2e7566f840233810ba62e7cf53e692
5
5
  SHA512:
6
- metadata.gz: c850117d5a25d1be2c91c478136150ad688c499869dc09799d857d3359f15f28fd610228a48d848d970bbbecca86d3bd5ce6b4931e0c588ce80d77c9c21f7f11
7
- data.tar.gz: 6e88d3acf05278ff9d6db17b068df1555b393437bdfb202e786c4fe1403e75a1c7d4ef1406159293118ad4b78cf7947e2d00b45a4ab7d82e64d09d8b493ae0e4
6
+ metadata.gz: 1cbd1bbda09ff2df41fa129ca9363cbd157ff7b65ee9da4a68eb48bf071dbee35b5ea7ad2c710979a2ad8185a74d5a66462d1f142913674e4bbcebfe96cfea07
7
+ data.tar.gz: a307526043574d23b537e822ff11fd4d501be2bc31abdf14ed0780c6b76860dbf35118e65f14552479a5c3ddc3edf9ede9ccdc6032242c19eba94201e34495ca
data/Cargo.lock CHANGED
@@ -88,7 +88,7 @@ version = "0.69.5"
88
88
  source = "registry+https://github.com/rust-lang/crates.io-index"
89
89
  checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
90
90
  dependencies = [
91
- "bitflags 2.9.4",
91
+ "bitflags",
92
92
  "cexpr",
93
93
  "clang-sys",
94
94
  "itertools",
@@ -104,24 +104,18 @@ dependencies = [
104
104
 
105
105
  [[package]]
106
106
  name = "bit-set"
107
- version = "0.5.3"
107
+ version = "0.8.0"
108
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
109
- checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
109
+ checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
110
110
  dependencies = [
111
111
  "bit-vec",
112
112
  ]
113
113
 
114
114
  [[package]]
115
115
  name = "bit-vec"
116
- version = "0.6.3"
117
- source = "registry+https://github.com/rust-lang/crates.io-index"
118
- checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
119
-
120
- [[package]]
121
- name = "bitflags"
122
- version = "1.3.2"
116
+ version = "0.8.0"
123
117
  source = "registry+https://github.com/rust-lang/crates.io-index"
124
- checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
118
+ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
125
119
 
126
120
  [[package]]
127
121
  name = "bitflags"
@@ -266,9 +260,9 @@ dependencies = [
266
260
 
267
261
  [[package]]
268
262
  name = "comrak"
269
- version = "0.43.0"
263
+ version = "0.44.0"
270
264
  source = "registry+https://github.com/rust-lang/crates.io-index"
271
- checksum = "5ccfd7678fba9aff54a74a70352d952b345e568823ed9d5a92ebc8ad0adad8ea"
265
+ checksum = "07fcaf1ac457de7574ce514fd9a68e86e8196165529f48a544ec90cbea840e04"
272
266
  dependencies = [
273
267
  "bon",
274
268
  "caseless",
@@ -383,12 +377,13 @@ dependencies = [
383
377
 
384
378
  [[package]]
385
379
  name = "fancy-regex"
386
- version = "0.11.0"
380
+ version = "0.16.2"
387
381
  source = "registry+https://github.com/rust-lang/crates.io-index"
388
- checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2"
382
+ checksum = "998b056554fbe42e03ae0e152895cd1a7e1002aec800fdc6635d20270260c46f"
389
383
  dependencies = [
390
384
  "bit-set",
391
- "regex",
385
+ "regex-automata",
386
+ "regex-syntax",
392
387
  ]
393
388
 
394
389
  [[package]]
@@ -522,9 +517,9 @@ checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
522
517
 
523
518
  [[package]]
524
519
  name = "magnus"
525
- version = "0.8.1"
520
+ version = "0.8.2"
526
521
  source = "registry+https://github.com/rust-lang/crates.io-index"
527
- checksum = "bd2ac6e71886be00ac34db92aa732c793c5107c95191805b9a1c7e70e6d342e0"
522
+ checksum = "3b36a5b126bbe97eb0d02d07acfeb327036c6319fd816139a49824a83b7f9012"
528
523
  dependencies = [
529
524
  "magnus-macros",
530
525
  "rb-sys",
@@ -598,7 +593,7 @@ version = "6.5.1"
598
593
  source = "registry+https://github.com/rust-lang/crates.io-index"
599
594
  checksum = "336b9c63443aceef14bea841b899035ae3abe89b7c486aaf4c5bd8aafedac3f0"
600
595
  dependencies = [
601
- "bitflags 2.9.4",
596
+ "bitflags",
602
597
  "libc",
603
598
  "once_cell",
604
599
  "onig_sys",
@@ -771,7 +766,7 @@ version = "1.1.2"
771
766
  source = "registry+https://github.com/rust-lang/crates.io-index"
772
767
  checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
773
768
  dependencies = [
774
- "bitflags 2.9.4",
769
+ "bitflags",
775
770
  "errno",
776
771
  "libc",
777
772
  "linux-raw-sys",
@@ -894,12 +889,11 @@ dependencies = [
894
889
 
895
890
  [[package]]
896
891
  name = "syntect"
897
- version = "5.2.0"
892
+ version = "5.3.0"
898
893
  source = "registry+https://github.com/rust-lang/crates.io-index"
899
- checksum = "874dcfa363995604333cf947ae9f751ca3af4522c60886774c4963943b4746b1"
894
+ checksum = "656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925"
900
895
  dependencies = [
901
896
  "bincode",
902
- "bitflags 1.3.2",
903
897
  "fancy-regex",
904
898
  "flate2",
905
899
  "fnv",
@@ -927,18 +921,18 @@ dependencies = [
927
921
 
928
922
  [[package]]
929
923
  name = "thiserror"
930
- version = "1.0.69"
924
+ version = "2.0.17"
931
925
  source = "registry+https://github.com/rust-lang/crates.io-index"
932
- checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
926
+ checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
933
927
  dependencies = [
934
928
  "thiserror-impl",
935
929
  ]
936
930
 
937
931
  [[package]]
938
932
  name = "thiserror-impl"
939
- version = "1.0.69"
933
+ version = "2.0.17"
940
934
  source = "registry+https://github.com/rust-lang/crates.io-index"
941
- checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
935
+ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
942
936
  dependencies = [
943
937
  "proc-macro2",
944
938
  "quote",
data/README.md CHANGED
@@ -202,6 +202,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
202
202
  | `superscript` | Enables the superscript Comrak extension. | `false` |
203
203
  | `header_ids` | Enables the header IDs Comrak extension. from the GFM spec. | `""` |
204
204
  | `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
205
+ | `inline_footnotes` | Enables the inline footnotes extension. | `false` |
205
206
  | `description_lists` | Enables the description lists extension. | `false` |
206
207
  | `front_matter_delimiter` | Enables the front matter extension. | `""` |
207
208
  | `multiline_block_quotes` | Enables the multiline block quotes extension. | `false` |
@@ -10,8 +10,8 @@ magnus = { version = "0.8", features = ["rb-sys"] }
10
10
  rb-sys = { version = "*", default-features = false, features = [
11
11
  "stable-api-compiled-fallback",
12
12
  ] }
13
- comrak = { version = "0.43", features = ["shortcodes"] }
14
- syntect = { version = "5.2", features = ["plist-load"] }
13
+ comrak = { version = "0.44", features = ["shortcodes"] }
14
+ syntect = { version = "5.3", features = ["plist-load"] }
15
15
  typed-arena = "2.0"
16
16
  rctree = "0.6"
17
17
 
@@ -109,6 +109,7 @@ const EXTENSION_TASKLIST: &str = "tasklist";
109
109
  const EXTENSION_SUPERSCRIPT: &str = "superscript";
110
110
  const EXTENSION_HEADER_IDS: &str = "header_ids";
111
111
  const EXTENSION_FOOTNOTES: &str = "footnotes";
112
+ const EXTENSION_INLINE_FOOTNOTES: &str = "inline_footnotes";
112
113
  const EXTENSION_DESCRIPTION_LISTS: &str = "description_lists";
113
114
  const EXTENSION_FRONT_MATTER_DELIMITER: &str = "front_matter_delimiter";
114
115
  const EXTENSION_MULTILINE_BLOCK_QUOTES: &str = "multiline_block_quotes";
@@ -152,6 +153,9 @@ fn iterate_extension_options(comrak_options: &mut ComrakOptions, options_hash: R
152
153
  Cow::Borrowed(EXTENSION_FOOTNOTES) => {
153
154
  comrak_options.extension.footnotes = TryConvert::try_convert(value)?;
154
155
  }
156
+ Cow::Borrowed(EXTENSION_INLINE_FOOTNOTES) => {
157
+ comrak_options.extension.inline_footnotes = TryConvert::try_convert(value)?;
158
+ }
155
159
  Cow::Borrowed(EXTENSION_DESCRIPTION_LISTS) => {
156
160
  comrak_options.extension.description_lists = TryConvert::try_convert(value)?;
157
161
  }
@@ -35,6 +35,7 @@ module Commonmarker
35
35
  superscript: false,
36
36
  header_ids: "",
37
37
  footnotes: false,
38
+ inline_footnotes: false,
38
39
  description_lists: false,
39
40
  front_matter_delimiter: "",
40
41
  multiline_block_quotes: false,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmarker
4
- VERSION = "2.4.1"
4
+ VERSION = "2.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  - Ashe Connor
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-29 00:00:00.000000000 Z
11
+ date: 2025-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys