html-to-markdown 3.4.0.pre.rc.16-aarch64-linux → 3.4.0.pre.rc.21-aarch64-linux
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/lib/bin/html-to-markdown +0 -0
- data/lib/html_to_markdown/version.rb +1 -1
- data/lib/html_to_markdown.rb +6 -8
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/types.rbs +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: c1b6bf1134b00cadaf87d3c57f4d777021cdf5f9a70fd014ad94c6590a6820da
|
|
4
|
+
data.tar.gz: b4e744b7a47879f0b16ee05501a789b62d46ddbba637afd8bf02843cd2c89705
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e9640f836f5dfab2dc6267ff3d3c8ec859e3a3b43febd3be14d20342fa81454f08f6c3fa515bb5638f3d238a5d27626651bf336f08a0b4219393f8ac61b7a0c
|
|
7
|
+
data.tar.gz: 8ac755fe6f7bafd5c9d1a46bdc72a51f5f2dff2d13f4843016907454234c901a782200d7d2457844742dc71e17ee7060311131340d4f5e98c46149c52826e117
|
data/lib/bin/html-to-markdown
CHANGED
|
Binary file
|
data/lib/html_to_markdown.rb
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative 'html_to_markdown/version'
|
|
4
4
|
require 'html_to_markdown_rb'
|
|
5
|
+
require 'json'
|
|
5
6
|
|
|
6
7
|
# High-performance HTML to Markdown conversion.
|
|
7
8
|
#
|
|
@@ -29,14 +30,11 @@ module HtmlToMarkdown
|
|
|
29
30
|
# (and more, matching ConversionOptions fields)
|
|
30
31
|
# @return [String] The converted Markdown content.
|
|
31
32
|
def self.convert(html, options = {}, visitor = nil)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
HtmlToMarkdownRs::ConversionOptions.new(options)
|
|
38
|
-
end
|
|
39
|
-
result = HtmlToMarkdownRs.convert(html, opts, visitor)
|
|
33
|
+
# The Rust FFI expects options as a JSON string; serialise the hash here
|
|
34
|
+
# rather than constructing a ConversionOptions object, which the generated
|
|
35
|
+
# FFI layer cannot coerce back to String (see issue #334).
|
|
36
|
+
opts_json = options.nil? || options.empty? ? nil : options.to_json
|
|
37
|
+
result = HtmlToMarkdownRs.convert(html, opts_json, visitor)
|
|
40
38
|
result.content || ''
|
|
41
39
|
end
|
|
42
40
|
end
|
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:f0d66ccd989cb158aa2206dc4fc0596d3e4060cbb323372db1418e22598b6c21
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-to-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.0.pre.rc.
|
|
4
|
+
version: 3.4.0.pre.rc.21
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Kreuzberg Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: High-performance HTML to Markdown converter
|
|
14
14
|
email:
|