html-to-markdown 3.4.0.pre.rc.18-aarch64-linux → 3.4.0.pre.rc.23-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: 037d1d2829574d634227b76ea28bf77917c7eaa8ba9202f68bc8b9bd147b6ece
4
- data.tar.gz: 36789289758ed4d3fd360b66826d84d44736513189390c7adeba181efaaf0ce4
3
+ metadata.gz: f1c6234af35f3da12d278ca97593846865d886f215b1152b7e51b6ab9caca163
4
+ data.tar.gz: e2bfc65a0561808b725ed74d890dbeda2b5d29c03b25265a20720c8199a51d03
5
5
  SHA512:
6
- metadata.gz: dd4b686c16f5f9ad623a6f4c84a2a60946d14a7ec374b49361c8383b87bb43f8ae900630a4357f028ffc965edf9df32df233d3c5f484a9407c8ea131247d826e
7
- data.tar.gz: 1e9b3efde4411fb4dec99365be7094a2893bb18c4dc243580d9f69e30d735ba097f36792d548480c603de7b0fd56e6fcc1dd48e4eabe3eae6884b39cd2e72dd7
6
+ metadata.gz: 30c78e912b7b267740b7b500a19e8c0598c1a0e4011674f4d6b8dd63bbad8071d339095f8c19a28cc1e78512ec47eb85264f4b97f501a2492e80760f9a1c8458
7
+ data.tar.gz: 8fd09bf538325587bd1bc15d8e7e9ade22288ef0ee3f02f87cdab4f3805e6e2240c167d1ac005012ab489b144a6dd8c8e672a3989cfe778a1cb0047b296297ac
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.18'
4
+ VERSION = '3.4.0.pre.rc.23'
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.18
4
+ version: 3.4.0.pre.rc.23
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-05-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: High-performance HTML to Markdown converter
14
14
  email: