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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68eda00f39256c68e4c7cedde3a7fece8b6e52aa35ae02464b58adccf8748471
4
- data.tar.gz: 38421b22d3c343d1e790ed6c479c1a5e35cd45c56d07d870d2f8bf6a580cc74c
3
+ metadata.gz: c1b6bf1134b00cadaf87d3c57f4d777021cdf5f9a70fd014ad94c6590a6820da
4
+ data.tar.gz: b4e744b7a47879f0b16ee05501a789b62d46ddbba637afd8bf02843cd2c89705
5
5
  SHA512:
6
- metadata.gz: 38fc63d987165d1f08abd546449b53178cd4ee7f7e0dd4a76797e782ebaa8111733223dd401b2f42a72ac78f6f3d97522fa2999bbc7418c4bffed1e93ce76570
7
- data.tar.gz: 72f633e7c36f55fb0aec1c960c0375c960d95b0c347cef2e1336a01b763d7344c03d60be4d94b8a0794e2e4efce098bd933440ce7bcc251568b9ae9333782513
6
+ metadata.gz: 6e9640f836f5dfab2dc6267ff3d3c8ec859e3a3b43febd3be14d20342fa81454f08f6c3fa515bb5638f3d238a5d27626651bf336f08a0b4219393f8ac61b7a0c
7
+ data.tar.gz: 8ac755fe6f7bafd5c9d1a46bdc72a51f5f2dff2d13f4843016907454234c901a782200d7d2457844742dc71e17ee7060311131340d4f5e98c46149c52826e117
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HtmlToMarkdown
4
- VERSION = '3.4.0.pre.rc.16'
4
+ VERSION = '3.4.0.pre.rc.21'
5
5
  end
@@ -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
- opts = if options.is_a?(HtmlToMarkdownRs::ConversionOptions)
33
- options
34
- elsif options.nil? || options.empty?
35
- nil
36
- else
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
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:fa557708df795d5b42dd32042603884cf4e9e96a2609974ffb238997cf8b32b3
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.16
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-29 00:00:00.000000000 Z
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: