html-to-markdown 3.7.1 → 3.7.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/ext/html_to_markdown_rb/Cargo.toml +1 -1
- data/ext/html_to_markdown_rb/native/Cargo.lock +3 -3
- data/ext/html_to_markdown_rb/native/Cargo.toml +2 -2
- data/ext/html_to_markdown_rb/src/lib.rs +6 -1
- data/lib/html_to_markdown/native.rb +1 -1
- data/lib/html_to_markdown/version.rb +2 -2
- data/lib/html_to_markdown.rb +1 -1
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/types.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60fc88db5af0375c92dd3bdff2abcfe4f5336e1aa44b3b2ab7baa17b1bfbf144
|
|
4
|
+
data.tar.gz: 93eb1492292fe93a2c881440dc982c6fbee2a09c82242676e85d0e30f74d0fd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5922c70cc49e07b99de3dc2d3843465c6d5b4f2ea8fa44524b08c8e4c6224287ffb8732c8e58704fdf97f741a470bda126679609f2595e552a1191d3d73059bd
|
|
7
|
+
data.tar.gz: 90cbd3b368ef13af1c9d70e2e2632c6fd6f5a53ec031407ed09d914a123a2863950942e64f113a0f14795118a5642868a8e260a9728a42ff514c964983159b2b
|
|
@@ -263,7 +263,7 @@ dependencies = [
|
|
|
263
263
|
|
|
264
264
|
[[package]]
|
|
265
265
|
name = "html-to-markdown-rb"
|
|
266
|
-
version = "3.7.
|
|
266
|
+
version = "3.7.2"
|
|
267
267
|
dependencies = [
|
|
268
268
|
"async-trait",
|
|
269
269
|
"html-to-markdown-rs",
|
|
@@ -276,9 +276,9 @@ dependencies = [
|
|
|
276
276
|
|
|
277
277
|
[[package]]
|
|
278
278
|
name = "html-to-markdown-rs"
|
|
279
|
-
version = "3.7.
|
|
279
|
+
version = "3.7.2"
|
|
280
280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
-
checksum = "
|
|
281
|
+
checksum = "e80e5d74dbe02fc52264d6a1d21c12bbc0cb062bca64caa295e4703590f1aabe"
|
|
282
282
|
dependencies = [
|
|
283
283
|
"ahash",
|
|
284
284
|
"astral-tl",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "html-to-markdown-rb"
|
|
3
|
-
version = "3.7.
|
|
3
|
+
version = "3.7.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
description = "High-performance HTML to Markdown converter"
|
|
@@ -25,7 +25,7 @@ visitor = ["html-to-markdown-rs/visitor"]
|
|
|
25
25
|
|
|
26
26
|
[dependencies]
|
|
27
27
|
async-trait = "0.1"
|
|
28
|
-
html-to-markdown-rs = { version = "3.7.
|
|
28
|
+
html-to-markdown-rs = { version = "3.7.2", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
|
|
29
29
|
magnus = "0.8"
|
|
30
30
|
rb-sys = ">=0.9, <0.9.128"
|
|
31
31
|
serde = { version = "1", features = ["derive"] }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:7471d00a591a836cdb7076cfa76ddf0a8b03850c500d98669bcb0c59b507180a
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -3492,9 +3492,11 @@ impl magnus::TryConvert for NodeContent {
|
|
|
3492
3492
|
})?
|
|
3493
3493
|
};
|
|
3494
3494
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
3495
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
3495
3496
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
3496
3497
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
3497
3498
|
serde_json::from_str(&json_str)
|
|
3499
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "node_type": json_str })))
|
|
3498
3500
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
3499
3501
|
.or_else(|_| {
|
|
3500
3502
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -3556,9 +3558,11 @@ impl magnus::TryConvert for AnnotationKind {
|
|
|
3556
3558
|
})?
|
|
3557
3559
|
};
|
|
3558
3560
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
3561
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
3559
3562
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
3560
3563
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
3561
3564
|
serde_json::from_str(&json_str)
|
|
3565
|
+
.or_else(|_| serde_json::from_value(serde_json::json!({ "annotation_type": json_str })))
|
|
3562
3566
|
.or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
|
|
3563
3567
|
.or_else(|_| {
|
|
3564
3568
|
// Try as a JSON string for Custom variant (untagged enums accept any remaining value)
|
|
@@ -3967,6 +3971,7 @@ impl magnus::TryConvert for VisitResult {
|
|
|
3967
3971
|
})?
|
|
3968
3972
|
};
|
|
3969
3973
|
// Try deserializing as JSON first (handles JSON strings like "\"markdown\"" or "{\"click\":{\"selector\":\"...\"}}\"")
|
|
3974
|
+
// For internally-tagged enums, a bare variant string is wrapped as {"<tag>": value}.
|
|
3970
3975
|
// If that fails, try treating it as a plain string value and wrap in quotes
|
|
3971
3976
|
// If both fail, try as Custom variant (for untagged enum support)
|
|
3972
3977
|
serde_json::from_str(&json_str)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:7471d00a591a836cdb7076cfa76ddf0a8b03850c500d98669bcb0c59b507180a
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:7471d00a591a836cdb7076cfa76ddf0a8b03850c500d98669bcb0c59b507180a
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module HtmlToMarkdown
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "3.7.
|
|
9
|
+
VERSION = "3.7.2"
|
|
10
10
|
end
|
data/lib/html_to_markdown.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:7471d00a591a836cdb7076cfa76ddf0a8b03850c500d98669bcb0c59b507180a
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
data/lib/html_to_markdown_rb.so
CHANGED
|
Binary file
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:7471d00a591a836cdb7076cfa76ddf0a8b03850c500d98669bcb0c59b507180a
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
|