html-to-markdown 2.14.1 → 2.14.3

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: dd0a9378e87b5c10c4500389c1c5e9c25a3b7b7ea1a930839b20ec0c9e00745b
4
- data.tar.gz: 81b1626a43403390709c9c1fdecc377648ef8cda554fafafda6c0cfa2f841bcb
3
+ metadata.gz: 795d4dfbe90a9c9cf0b3e565d69f9c23599aee7d8e56d71f7aae1931af039bed
4
+ data.tar.gz: b61afd5134a581f5b4dbc03c2c4189b12d1a0b4243eb0a99c2f955c5e784f589
5
5
  SHA512:
6
- metadata.gz: 30e15347d844c106f7e0538f499e9162c3d14903b7af3dff932649150e050b68e04bf4775a20377aaacc8f7c3c290a9128cb290047f9247f251a6214b793e043
7
- data.tar.gz: d966ff4c9395461196e6f81f087ba7be193b9ea2f071e74053f9ae7feed10c5ffeca73f54cd01c53ba9ba8548634b3820dfa70712b040f5ce2d7d3ceefdff5b4
6
+ metadata.gz: 12d6ced54ad18bc2aeee7f5f88ea74ef70f259d674c9d5dc290f863615e6c945ae6847d9f70c836d5146fdfbd8476d8e6fdc5b0b313395463623b507d9a106c9
7
+ data.tar.gz: 85ba7a6ee8357a075c0c5982eea00b963d7a463b736c8b7df3a0e9a8f2b926f39204e89096e5c202c12944ed1e1ca125d15e6f159f650c4245c994a4826a97a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- html-to-markdown (2.14.1)
4
+ html-to-markdown (2.14.3)
5
5
  rb_sys (>= 0.9, < 1.0)
6
6
 
7
7
  GEM
@@ -33,14 +33,14 @@ GEM
33
33
  fileutils (1.8.0)
34
34
  i18n (1.14.7)
35
35
  concurrent-ruby (~> 1.0)
36
- json (2.17.1)
36
+ json (2.18.0)
37
37
  language_server-protocol (3.17.0.5)
38
38
  lint_roller (1.1.0)
39
39
  listen (3.9.0)
40
40
  rb-fsevent (~> 0.10, >= 0.10.3)
41
41
  rb-inotify (~> 0.9, >= 0.9.10)
42
42
  logger (1.7.0)
43
- minitest (5.26.2)
43
+ minitest (5.27.0)
44
44
  mutex_m (0.3.0)
45
45
  parallel (1.27.0)
46
46
  parser (3.3.10.0)
data/README.md CHANGED
@@ -11,7 +11,7 @@ Blazing-fast HTML → Markdown conversion for Ruby, powered by the same Rust eng
11
11
  [![Hex.pm](https://img.shields.io/hexpm/v/html_to_markdown.svg)](https://hex.pm/packages/html_to_markdown)
12
12
  [![NuGet](https://img.shields.io/nuget/v/Goldziher.HtmlToMarkdown.svg)](https://www.nuget.org/packages/Goldziher.HtmlToMarkdown/)
13
13
  [![Maven Central](https://img.shields.io/maven-central/v/io.github.goldziher/html-to-markdown.svg)](https://central.sonatype.com/artifact/io.github.goldziher/html-to-markdown)
14
- [![Go Reference](https://pkg.go.dev/badge/github.com/Goldziher/html-to-markdown/packages/go/htmltomarkdown.svg)](https://pkg.go.dev/github.com/Goldziher/html-to-markdown/packages/go/htmltomarkdown)
14
+ [![Go Reference](https://pkg.go.dev/badge/github.com/Goldziher/html-to-markdown/packages/go/v2/htmltomarkdown.svg)](https://pkg.go.dev/github.com/Goldziher/html-to-markdown/packages/go/v2/htmltomarkdown)
15
15
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Goldziher/html-to-markdown/blob/main/LICENSE)
16
16
  [![Discord](https://img.shields.io/badge/Discord-Join%20our%20community-7289da)](https://discord.gg/pXxagNK2zN)
17
17
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "html-to-markdown-rb"
3
- version = "2.14.1"
3
+ version = "2.14.3"
4
4
  edition = "2024"
5
5
  authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
6
6
  license = "MIT"
@@ -22,7 +22,7 @@ default = ["metadata"]
22
22
  metadata = ["html-to-markdown-rs/metadata"]
23
23
 
24
24
  [dependencies]
25
- html-to-markdown-rs = { version = "2.14.1", features = ["inline-images"] }
25
+ html-to-markdown-rs = { version = "2.14.3", features = ["inline-images"] }
26
26
  magnus = { git = "https://github.com/matsadler/magnus", rev = "f6db11769efb517427bf7f121f9c32e18b059b38", features = ["rb-sys"] }
27
27
 
28
28
  [dev-dependencies]
@@ -681,7 +681,6 @@ fn convert_with_metadata_fn(ruby: &Ruby, args: &[Value]) -> Result<Value, Error>
681
681
  let (markdown, metadata) =
682
682
  guard_panic(|| convert_with_metadata_inner(&html, Some(options), metadata_config)).map_err(conversion_error)?;
683
683
 
684
- // Convert to Ruby array [markdown, metadata_hash]
685
684
  let array = ruby.ary_new();
686
685
  array.push(markdown)?;
687
686
  array.push(extended_metadata_to_ruby(ruby, metadata)?)?;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HtmlToMarkdown
4
- VERSION = '2.14.1'
4
+ VERSION = '2.14.3'
5
5
  end
@@ -349,7 +349,6 @@ RSpec.describe HtmlToMarkdown do
349
349
  HTML
350
350
  _, metadata = described_class.convert_with_metadata(html)
351
351
 
352
- # Structured data extraction may vary by implementation
353
352
  expect(metadata[:structured_data]).to be_an(Array)
354
353
  end
355
354
  end
@@ -382,7 +381,6 @@ RSpec.describe HtmlToMarkdown do
382
381
  html = '<html><head><title> Title with spaces </title></head><body><p>Content</p></body></html>'
383
382
  _, metadata = described_class.convert_with_metadata(html)
384
383
 
385
- # Whitespace may be normalized
386
384
  expect(metadata[:document][:title]).to match(/Title.*spaces/)
387
385
  end
388
386
 
@@ -398,7 +396,6 @@ RSpec.describe HtmlToMarkdown do
398
396
  HTML
399
397
  _, metadata = described_class.convert_with_metadata(html)
400
398
 
401
- # Last value typically wins, but implementation may vary
402
399
  expect(metadata[:document][:author]).to be_a(String)
403
400
  end
404
401
  end
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: 2.14.1
4
+ version: 2.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-12-12 00:00:00.000000000 Z
11
+ date: 2025-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys