html-to-markdown 3.10.6 → 3.11.2
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/README.md +8 -3
- data/ext/html_to_markdown_rb/Cargo.lock +78 -79
- data/ext/html_to_markdown_rb/Cargo.toml +33 -7
- data/ext/html_to_markdown_rb/native/Cargo.lock +35 -74
- data/ext/html_to_markdown_rb/native/Cargo.toml +18 -2
- data/ext/html_to_markdown_rb/native/extconf.rb +5 -0
- data/ext/html_to_markdown_rb/src/lib.rs +268 -245
- data/lib/html_to_markdown/native.rb +206 -108
- data/lib/html_to_markdown/version.rb +3 -3
- data/lib/html_to_markdown.rb +2 -2
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/types.rbs +298 -301
- metadata +2 -2
|
@@ -23,19 +23,13 @@ dependencies = [
|
|
|
23
23
|
|
|
24
24
|
[[package]]
|
|
25
25
|
name = "aho-corasick"
|
|
26
|
-
version = "1.1.
|
|
26
|
+
version = "1.1.5"
|
|
27
27
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
-
checksum = "
|
|
28
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
29
29
|
dependencies = [
|
|
30
30
|
"memchr",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
|
-
[[package]]
|
|
34
|
-
name = "allocator-api2"
|
|
35
|
-
version = "0.2.21"
|
|
36
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
-
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
|
|
38
|
-
|
|
39
33
|
[[package]]
|
|
40
34
|
name = "astral-tl"
|
|
41
35
|
version = "0.7.11"
|
|
@@ -47,9 +41,9 @@ dependencies = [
|
|
|
47
41
|
|
|
48
42
|
[[package]]
|
|
49
43
|
name = "async-trait"
|
|
50
|
-
version = "0.1.
|
|
44
|
+
version = "0.1.92"
|
|
51
45
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
-
checksum = "
|
|
46
|
+
checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
|
|
53
47
|
dependencies = [
|
|
54
48
|
"proc-macro2",
|
|
55
49
|
"quote",
|
|
@@ -64,9 +58,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
|
64
58
|
|
|
65
59
|
[[package]]
|
|
66
60
|
name = "base64"
|
|
67
|
-
version = "0.23.
|
|
61
|
+
version = "0.23.1"
|
|
68
62
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
69
|
-
checksum = "
|
|
63
|
+
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
70
64
|
|
|
71
65
|
[[package]]
|
|
72
66
|
name = "bindgen"
|
|
@@ -94,9 +88,9 @@ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
|
|
|
94
88
|
|
|
95
89
|
[[package]]
|
|
96
90
|
name = "bytemuck"
|
|
97
|
-
version = "1.25.
|
|
91
|
+
version = "1.25.2"
|
|
98
92
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
-
checksum = "
|
|
93
|
+
checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
|
|
100
94
|
|
|
101
95
|
[[package]]
|
|
102
96
|
name = "byteorder-lite"
|
|
@@ -121,9 +115,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
|
121
115
|
|
|
122
116
|
[[package]]
|
|
123
117
|
name = "clang-sys"
|
|
124
|
-
version = "1.
|
|
118
|
+
version = "1.9.1"
|
|
125
119
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
-
checksum = "
|
|
120
|
+
checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
|
|
127
121
|
dependencies = [
|
|
128
122
|
"glob",
|
|
129
123
|
"libc",
|
|
@@ -173,21 +167,15 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
|
|
|
173
167
|
|
|
174
168
|
[[package]]
|
|
175
169
|
name = "either"
|
|
176
|
-
version = "1.
|
|
177
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
-
checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
|
|
179
|
-
|
|
180
|
-
[[package]]
|
|
181
|
-
name = "equivalent"
|
|
182
|
-
version = "1.0.2"
|
|
170
|
+
version = "1.17.0"
|
|
183
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
184
|
-
checksum = "
|
|
172
|
+
checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
|
|
185
173
|
|
|
186
174
|
[[package]]
|
|
187
175
|
name = "fastrand"
|
|
188
|
-
version = "2.
|
|
176
|
+
version = "2.5.0"
|
|
189
177
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
190
|
-
checksum = "
|
|
178
|
+
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
191
179
|
|
|
192
180
|
[[package]]
|
|
193
181
|
name = "fdeflate"
|
|
@@ -208,12 +196,6 @@ dependencies = [
|
|
|
208
196
|
"miniz_oxide",
|
|
209
197
|
]
|
|
210
198
|
|
|
211
|
-
[[package]]
|
|
212
|
-
name = "foldhash"
|
|
213
|
-
version = "0.2.0"
|
|
214
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
-
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
216
|
-
|
|
217
199
|
[[package]]
|
|
218
200
|
name = "getrandom"
|
|
219
201
|
version = "0.2.17"
|
|
@@ -237,30 +219,19 @@ dependencies = [
|
|
|
237
219
|
|
|
238
220
|
[[package]]
|
|
239
221
|
name = "glob"
|
|
240
|
-
version = "0.3.
|
|
222
|
+
version = "0.3.4"
|
|
241
223
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
-
checksum = "
|
|
243
|
-
|
|
244
|
-
[[package]]
|
|
245
|
-
name = "hashbrown"
|
|
246
|
-
version = "0.17.1"
|
|
247
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
-
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
249
|
-
dependencies = [
|
|
250
|
-
"allocator-api2",
|
|
251
|
-
"equivalent",
|
|
252
|
-
"foldhash",
|
|
253
|
-
]
|
|
224
|
+
checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
|
|
254
225
|
|
|
255
226
|
[[package]]
|
|
256
227
|
name = "html-escape"
|
|
257
|
-
version = "0.2.
|
|
228
|
+
version = "0.2.15"
|
|
258
229
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
-
checksum = "
|
|
230
|
+
checksum = "c9356095b4b41197bba32173600e1582792cda618f65d12f68e2e77d273413c5"
|
|
260
231
|
|
|
261
232
|
[[package]]
|
|
262
233
|
name = "html-to-markdown-rb"
|
|
263
|
-
version = "3.
|
|
234
|
+
version = "3.11.2"
|
|
264
235
|
dependencies = [
|
|
265
236
|
"async-trait",
|
|
266
237
|
"html-to-markdown-rs",
|
|
@@ -274,9 +245,9 @@ dependencies = [
|
|
|
274
245
|
|
|
275
246
|
[[package]]
|
|
276
247
|
name = "html-to-markdown-rs"
|
|
277
|
-
version = "3.
|
|
248
|
+
version = "3.11.2"
|
|
278
249
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
-
checksum = "
|
|
250
|
+
checksum = "718ba0514ab76ad0caccf199863df9fb94ed0b7196ae39505900826d4f7441ab"
|
|
280
251
|
dependencies = [
|
|
281
252
|
"ahash",
|
|
282
253
|
"astral-tl",
|
|
@@ -285,7 +256,6 @@ dependencies = [
|
|
|
285
256
|
"html-escape",
|
|
286
257
|
"html5ever",
|
|
287
258
|
"image",
|
|
288
|
-
"lru",
|
|
289
259
|
"memchr",
|
|
290
260
|
"once_cell",
|
|
291
261
|
"phf 0.14.0",
|
|
@@ -386,15 +356,6 @@ version = "0.4.33"
|
|
|
386
356
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
387
357
|
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
|
388
358
|
|
|
389
|
-
[[package]]
|
|
390
|
-
name = "lru"
|
|
391
|
-
version = "0.18.1"
|
|
392
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
393
|
-
checksum = "0b6180140927ee907000b0aa540091f6ea512ead4447c92b8fc35bc72788a5a6"
|
|
394
|
-
dependencies = [
|
|
395
|
-
"hashbrown",
|
|
396
|
-
]
|
|
397
|
-
|
|
398
359
|
[[package]]
|
|
399
360
|
name = "magnus"
|
|
400
361
|
version = "0.8.2"
|
|
@@ -705,9 +666,9 @@ dependencies = [
|
|
|
705
666
|
|
|
706
667
|
[[package]]
|
|
707
668
|
name = "regex-automata"
|
|
708
|
-
version = "0.4.
|
|
669
|
+
version = "0.4.18"
|
|
709
670
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
710
|
-
checksum = "
|
|
671
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
711
672
|
dependencies = [
|
|
712
673
|
"aho-corasick",
|
|
713
674
|
"memchr",
|
|
@@ -868,18 +829,18 @@ dependencies = [
|
|
|
868
829
|
|
|
869
830
|
[[package]]
|
|
870
831
|
name = "thiserror"
|
|
871
|
-
version = "2.0.
|
|
832
|
+
version = "2.0.20"
|
|
872
833
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
873
|
-
checksum = "
|
|
834
|
+
checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
|
|
874
835
|
dependencies = [
|
|
875
836
|
"thiserror-impl",
|
|
876
837
|
]
|
|
877
838
|
|
|
878
839
|
[[package]]
|
|
879
840
|
name = "thiserror-impl"
|
|
880
|
-
version = "2.0.
|
|
841
|
+
version = "2.0.20"
|
|
881
842
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
882
|
-
checksum = "
|
|
843
|
+
checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
|
|
883
844
|
dependencies = [
|
|
884
845
|
"proc-macro2",
|
|
885
846
|
"quote",
|
|
@@ -955,9 +916,9 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
|
955
916
|
|
|
956
917
|
[[package]]
|
|
957
918
|
name = "web_atoms"
|
|
958
|
-
version = "0.2.
|
|
919
|
+
version = "0.2.6"
|
|
959
920
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
960
|
-
checksum = "
|
|
921
|
+
checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
|
|
961
922
|
dependencies = [
|
|
962
923
|
"phf 0.13.1",
|
|
963
924
|
"phf_codegen",
|
|
@@ -979,18 +940,18 @@ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
|
979
940
|
|
|
980
941
|
[[package]]
|
|
981
942
|
name = "zerocopy"
|
|
982
|
-
version = "0.8.
|
|
943
|
+
version = "0.8.56"
|
|
983
944
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
984
|
-
checksum = "
|
|
945
|
+
checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
|
|
985
946
|
dependencies = [
|
|
986
947
|
"zerocopy-derive",
|
|
987
948
|
]
|
|
988
949
|
|
|
989
950
|
[[package]]
|
|
990
951
|
name = "zerocopy-derive"
|
|
991
|
-
version = "0.8.
|
|
952
|
+
version = "0.8.56"
|
|
992
953
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
993
|
-
checksum = "
|
|
954
|
+
checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
|
|
994
955
|
dependencies = [
|
|
995
956
|
"proc-macro2",
|
|
996
957
|
"quote",
|
|
@@ -1005,9 +966,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
|
1005
966
|
|
|
1006
967
|
[[package]]
|
|
1007
968
|
name = "zune-core"
|
|
1008
|
-
version = "0.5.
|
|
969
|
+
version = "0.5.3"
|
|
1009
970
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1010
|
-
checksum = "
|
|
971
|
+
checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
|
|
1011
972
|
|
|
1012
973
|
[[package]]
|
|
1013
974
|
name = "zune-jpeg"
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
+
# alef:hash:a039223e1211c88bef2fa27483d06c495b3c37de090f91ae3d7b2d56c806afcf
|
|
3
|
+
# To regenerate: alef generate
|
|
4
|
+
# To verify freshness: alef verify
|
|
5
|
+
|
|
1
6
|
[package]
|
|
2
7
|
name = "html-to-markdown-rb"
|
|
3
|
-
version = "3.
|
|
8
|
+
version = "3.11.2"
|
|
4
9
|
edition = "2024"
|
|
5
10
|
license = "MIT"
|
|
6
11
|
description = "High-performance HTML to Markdown converter"
|
|
@@ -25,10 +30,21 @@ visitor = ["html-to-markdown-rs/visitor"]
|
|
|
25
30
|
|
|
26
31
|
[dependencies]
|
|
27
32
|
async-trait = "0.1"
|
|
28
|
-
html-to-markdown-rs = { version = "3.
|
|
33
|
+
html-to-markdown-rs = { version = "3.11.2", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
|
|
29
34
|
magnus = "0.8"
|
|
30
35
|
rb-sys = ">=0.9, <0.9.128"
|
|
31
36
|
serde = { version = "1", features = ["derive"] }
|
|
32
37
|
serde_json = "1"
|
|
33
38
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
34
39
|
tracing = "0.1"
|
|
40
|
+
|
|
41
|
+
# This crate deliberately does not use `[lints]` / `workspace = true`: its C-ABI /
|
|
42
|
+
# PyO3 / napi / ext-php-rs / NIF boundary requires `unsafe` code, and the workspace's
|
|
43
|
+
# `[workspace.lints.rust]` sets `unsafe_code = "deny"` -- an all-or-nothing table that
|
|
44
|
+
# would turn every such boundary into a compile error. The `[lints.clippy]` block below
|
|
45
|
+
# instead carries the subset of the workspace's deny-by-default lint policy this crate
|
|
46
|
+
# can actually satisfy. ~keep
|
|
47
|
+
[lints.clippy]
|
|
48
|
+
dbg_macro = "deny"
|
|
49
|
+
print_stderr = "deny"
|
|
50
|
+
print_stdout = "deny"
|