html-to-markdown 3.8.1 → 3.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d001dab2d306ee1cdc794224b24f05739fa0249fd978b401aa605596979f1d1f
4
- data.tar.gz: 944a3931d94eabeb9c97eeb6cdc376032d88019b01d89d3c4ba4ff53efb731e6
3
+ metadata.gz: 1d7a7edd4a1918e284d760aadc529b9acfed9a591bdfdbf1f0fc0fd1b904c6ff
4
+ data.tar.gz: 81fe39786ff2525dd7e01e10c458d0ab8fe2300a3eb4df3ca0ea2acc04978736
5
5
  SHA512:
6
- metadata.gz: 71aa0c8bf8f700bd91dd3fe9f0a4d4ad01e2cfcf88a78b544b7ffe4fc1bbd6194a2a639210d3b5a7244a3862460acb59417cd4909efab8b3bf183f1088d20d7b
7
- data.tar.gz: c85fdced163091bc61da0d7c89718570805d80afb1d545daaadaab7780d57a1d06fbb8e3312037716def7eada0ffde2b63c9378f6cbdb3466880e42c1d706d5e
6
+ metadata.gz: 6666a6669196bfe6f50f54d22837e9f952d78c8c5e622a2b36cc53ae420bbc24730e1f99c2823350d31f91b3191853d9e8ad32ddf443bf0e279637049a07b6a8
7
+ data.tar.gz: a4718bcfce1de0383652d97a6fea991629b6d0d07711f1c8d39a266641a6adf38b9527e7160a9e79c3d69038eb0dfd1ea51a5f8e897e5cb669274943594e95b4
@@ -1,7 +1,7 @@
1
1
 
2
2
  [package]
3
3
  name = "html-to-markdown-rb"
4
- version = "3.8.1"
4
+ version = "3.8.2"
5
5
  edition = "2024"
6
6
  license = "MIT"
7
7
  [workspace]
@@ -276,9 +276,9 @@ dependencies = [
276
276
 
277
277
  [[package]]
278
278
  name = "html-to-markdown-rs"
279
- version = "3.8.1"
279
+ version = "3.8.2"
280
280
  source = "registry+https://github.com/rust-lang/crates.io-index"
281
- checksum = "5b8defe72747832a90e54cd6b0daad64f89a970b9b3c977f40ba968d3f7f50c6"
281
+ checksum = "bfb98086035f41cf7bcdb6bd1dab14b118e53b035e003e268698a6003c413fa0"
282
282
  dependencies = [
283
283
  "ahash",
284
284
  "astral-tl",
@@ -9,6 +9,8 @@ keywords = ["converter", "html", "markdown"]
9
9
  categories = []
10
10
 
11
11
  [package.metadata.cargo-machete]
12
+ # async-trait / tokio are declared for feature parity but the generated Magnus
13
+ # shim has no direct callsite (same rationale as the pyo3 crate).
12
14
  ignored = ["rb-sys", "async-trait", "tokio"]
13
15
 
14
16
  [lib]
@@ -25,7 +27,7 @@ visitor = ["html-to-markdown-rs/visitor"]
25
27
 
26
28
  [dependencies]
27
29
  async-trait = "0.1"
28
- html-to-markdown-rs = { version = "3.8.1", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
30
+ html-to-markdown-rs = { version = "3.8.2", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
29
31
  magnus = "0.8"
30
32
  rb-sys = ">=0.9, <0.9.128"
31
33
  serde = { version = "1", features = ["derive"] }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:526c92c34b7201230da79912b4ec8eb9ecc5c6683951a43cd0234a619377accd
2
+ // alef:hash:df03cfa1ea58fc063ec7e305db2e9dcdc739bb4b063899fc4750f8584c5bd37e
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -6521,25 +6521,37 @@ impl From<html_to_markdown_rs::options::OutputFormat> for OutputFormat {
6521
6521
  impl From<NodeContent> for html_to_markdown_rs::NodeContent {
6522
6522
  fn from(val: NodeContent) -> Self {
6523
6523
  match val {
6524
- NodeContent::Heading { level, text } => Self::Heading { level, text },
6525
- NodeContent::Paragraph { text } => Self::Paragraph { text },
6526
- NodeContent::List { ordered } => Self::List { ordered },
6527
- NodeContent::ListItem { text } => Self::ListItem { text },
6524
+ NodeContent::Heading { level, text } => Self::Heading {
6525
+ level: level,
6526
+ text: text,
6527
+ },
6528
+ NodeContent::Paragraph { text } => Self::Paragraph { text: text },
6529
+ NodeContent::List { ordered } => Self::List { ordered: ordered },
6530
+ NodeContent::ListItem { text } => Self::ListItem { text: text },
6528
6531
  NodeContent::Table { grid } => Self::Table { grid: grid.into() },
6529
6532
  NodeContent::Image {
6530
6533
  description,
6531
6534
  src,
6532
6535
  image_index,
6533
6536
  } => Self::Image {
6534
- description,
6535
- src,
6536
- image_index,
6537
+ description: description,
6538
+ src: src,
6539
+ image_index: image_index,
6540
+ },
6541
+ NodeContent::Code { text, language } => Self::Code {
6542
+ text: text,
6543
+ language: language,
6537
6544
  },
6538
- NodeContent::Code { text, language } => Self::Code { text, language },
6539
6545
  NodeContent::Quote => Self::Quote,
6540
6546
  NodeContent::DefinitionList => Self::DefinitionList,
6541
- NodeContent::DefinitionItem { term, definition } => Self::DefinitionItem { term, definition },
6542
- NodeContent::RawBlock { format, content } => Self::RawBlock { format, content },
6547
+ NodeContent::DefinitionItem { term, definition } => Self::DefinitionItem {
6548
+ term: term,
6549
+ definition: definition,
6550
+ },
6551
+ NodeContent::RawBlock { format, content } => Self::RawBlock {
6552
+ format: format,
6553
+ content: content,
6554
+ },
6543
6555
  NodeContent::MetadataBlock { entries } => Self::MetadataBlock {
6544
6556
  entries: entries.into_iter().map(Into::into).collect(),
6545
6557
  },
@@ -6548,9 +6560,9 @@ impl From<NodeContent> for html_to_markdown_rs::NodeContent {
6548
6560
  heading_level,
6549
6561
  heading_text,
6550
6562
  } => Self::Group {
6551
- label,
6552
- heading_level,
6553
- heading_text,
6563
+ label: label,
6564
+ heading_level: heading_level,
6565
+ heading_text: heading_text,
6554
6566
  },
6555
6567
  }
6556
6568
  }
@@ -6560,11 +6572,11 @@ impl From<html_to_markdown_rs::NodeContent> for NodeContent {
6560
6572
  fn from(val: html_to_markdown_rs::NodeContent) -> Self {
6561
6573
  match val {
6562
6574
  html_to_markdown_rs::NodeContent::Heading { level, text } => Self::Heading {
6563
- level,
6575
+ level: level,
6564
6576
  text: text.to_string(),
6565
6577
  },
6566
6578
  html_to_markdown_rs::NodeContent::Paragraph { text } => Self::Paragraph { text: text.to_string() },
6567
- html_to_markdown_rs::NodeContent::List { ordered } => Self::List { ordered },
6579
+ html_to_markdown_rs::NodeContent::List { ordered } => Self::List { ordered: ordered },
6568
6580
  html_to_markdown_rs::NodeContent::ListItem { text } => Self::ListItem { text: text.to_string() },
6569
6581
  html_to_markdown_rs::NodeContent::Table { grid } => Self::Table { grid: grid.into() },
6570
6582
  html_to_markdown_rs::NodeContent::Image {
@@ -6574,7 +6586,7 @@ impl From<html_to_markdown_rs::NodeContent> for NodeContent {
6574
6586
  } => Self::Image {
6575
6587
  description: description.map(|v| v.to_string()),
6576
6588
  src: src.map(|v| v.to_string()),
6577
- image_index,
6589
+ image_index: image_index,
6578
6590
  },
6579
6591
  html_to_markdown_rs::NodeContent::Code { text, language } => Self::Code {
6580
6592
  text: text.to_string(),
@@ -6599,7 +6611,7 @@ impl From<html_to_markdown_rs::NodeContent> for NodeContent {
6599
6611
  heading_text,
6600
6612
  } => Self::Group {
6601
6613
  label: label.map(|v| v.to_string()),
6602
- heading_level,
6614
+ heading_level: heading_level,
6603
6615
  heading_text: heading_text.map(|v| v.to_string()),
6604
6616
  },
6605
6617
  }
@@ -6617,7 +6629,7 @@ impl From<AnnotationKind> for html_to_markdown_rs::AnnotationKind {
6617
6629
  AnnotationKind::Subscript => Self::Subscript,
6618
6630
  AnnotationKind::Superscript => Self::Superscript,
6619
6631
  AnnotationKind::Highlight => Self::Highlight,
6620
- AnnotationKind::Link { url, title } => Self::Link { url, title },
6632
+ AnnotationKind::Link { url, title } => Self::Link { url: url, title: title },
6621
6633
  }
6622
6634
  }
6623
6635
  }
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:526c92c34b7201230da79912b4ec8eb9ecc5c6683951a43cd0234a619377accd
2
+ # alef:hash:df03cfa1ea58fc063ec7e305db2e9dcdc739bb4b063899fc4750f8584c5bd37e
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:526c92c34b7201230da79912b4ec8eb9ecc5c6683951a43cd0234a619377accd
2
+ # alef:hash:df03cfa1ea58fc063ec7e305db2e9dcdc739bb4b063899fc4750f8584c5bd37e
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.8.1"
9
+ VERSION = "3.8.2"
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:526c92c34b7201230da79912b4ec8eb9ecc5c6683951a43cd0234a619377accd
2
+ # alef:hash:df03cfa1ea58fc063ec7e305db2e9dcdc739bb4b063899fc4750f8584c5bd37e
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # frozen_string_literal: true
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:526c92c34b7201230da79912b4ec8eb9ecc5c6683951a43cd0234a619377accd
2
+ # alef:hash:df03cfa1ea58fc063ec7e305db2e9dcdc739bb4b063899fc4750f8584c5bd37e
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
 
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.8.1
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld <naaman@xberg.io>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-02 00:00:00.000000000 Z
11
+ date: 2026-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys