html-to-markdown 3.18.6 → 3.18.7

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: 2016ec0d020c4c703d6b8834cdb15f5131fb819d1f9957119ef85ffef73c2570
4
- data.tar.gz: f47a1fd34111b85f55eb9b0bfcdcc8fa34aba0224f7e26a46d865999e505df0c
3
+ metadata.gz: e175db6704b5a4ac22e317895b4314dff1dbc809ed724da74ddc664b1edfeeb6
4
+ data.tar.gz: ca4ce9c464f60b9150bc7d508b5310841b08f6bef99218dbb2635a7a6b19bc89
5
5
  SHA512:
6
- metadata.gz: 3c9054a3dd71258420649bf3972e6727487ce7a6245039356d3e805d5f36ddb2a6ead7e9a098b66836cd1a394baedb8910dfe2a82eda21d64c1e0dbcaa0f09a3
7
- data.tar.gz: c73096310520b1a5ebc40d4c214e4ccd77dec47314c7e1b4bfd55e3a21f9b47cf3475da18e2fe5b76247c5ba8c9ba53566e6a30284b1761456a1cb6bce42f169
6
+ metadata.gz: 8a7a0b77e588a87d4f65e277c7a8408724f396c567171314ce13a9c44f5e20a5b7455f10f0c21c8037af138a6b1797604d5ac742e7f8f044139246c37bbf9a81
7
+ data.tar.gz: c55d9cdace13731aa4aad7c9656b6d0a56b831949ef2c5937adbdca64ae77ac9e72161c2d4bf41c98b2f6ae626e8b42cee92d4369cf63f1f08a09f822b7b07d8
@@ -152,9 +152,9 @@ dependencies = [
152
152
 
153
153
  [[package]]
154
154
  name = "crc32fast"
155
- version = "1.5.2"
155
+ version = "1.5.3"
156
156
  source = "registry+https://github.com/rust-lang/crates.io-index"
157
- checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
157
+ checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055"
158
158
  dependencies = [
159
159
  "cfg-if",
160
160
  ]
@@ -252,7 +252,7 @@ checksum = "491194d601b4fa9fac3c9571e014070a0ad1bc3392d1bc10419695196a8b3cc3"
252
252
 
253
253
  [[package]]
254
254
  name = "html-to-markdown-rb"
255
- version = "3.18.6"
255
+ version = "3.18.7"
256
256
  dependencies = [
257
257
  "async-trait",
258
258
  "html-to-markdown-rs",
@@ -266,9 +266,9 @@ dependencies = [
266
266
 
267
267
  [[package]]
268
268
  name = "html-to-markdown-rs"
269
- version = "3.18.6"
269
+ version = "3.18.7"
270
270
  source = "registry+https://github.com/rust-lang/crates.io-index"
271
- checksum = "efd51611ec6a8f3046a351920c7d67c89189c2d4789167c77be5556816cad17b"
271
+ checksum = "259eff8de02b67e436fa4ccd377dbf6105d530fc405f20489677f417cf673a7a"
272
272
  dependencies = [
273
273
  "ahash",
274
274
  "astral-tl",
@@ -301,9 +301,9 @@ dependencies = [
301
301
 
302
302
  [[package]]
303
303
  name = "icu_collections"
304
- version = "2.3.0"
304
+ version = "2.4.0"
305
305
  source = "registry+https://github.com/rust-lang/crates.io-index"
306
- checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
306
+ checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
307
307
  dependencies = [
308
308
  "displaydoc",
309
309
  "potential_utf",
@@ -315,9 +315,9 @@ dependencies = [
315
315
 
316
316
  [[package]]
317
317
  name = "icu_locale_core"
318
- version = "2.3.0"
318
+ version = "2.4.0"
319
319
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
- checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
320
+ checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
321
321
  dependencies = [
322
322
  "displaydoc",
323
323
  "litemap",
@@ -328,9 +328,9 @@ dependencies = [
328
328
 
329
329
  [[package]]
330
330
  name = "icu_normalizer"
331
- version = "2.3.0"
331
+ version = "2.4.0"
332
332
  source = "registry+https://github.com/rust-lang/crates.io-index"
333
- checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
333
+ checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
334
334
  dependencies = [
335
335
  "icu_collections",
336
336
  "icu_normalizer_data",
@@ -342,15 +342,15 @@ dependencies = [
342
342
 
343
343
  [[package]]
344
344
  name = "icu_normalizer_data"
345
- version = "2.3.0"
345
+ version = "2.4.0"
346
346
  source = "registry+https://github.com/rust-lang/crates.io-index"
347
- checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
347
+ checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
348
348
 
349
349
  [[package]]
350
350
  name = "icu_properties"
351
- version = "2.3.0"
351
+ version = "2.4.0"
352
352
  source = "registry+https://github.com/rust-lang/crates.io-index"
353
- checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
353
+ checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
354
354
  dependencies = [
355
355
  "displaydoc",
356
356
  "icu_collections",
@@ -363,15 +363,15 @@ dependencies = [
363
363
 
364
364
  [[package]]
365
365
  name = "icu_properties_data"
366
- version = "2.3.0"
366
+ version = "2.4.0"
367
367
  source = "registry+https://github.com/rust-lang/crates.io-index"
368
- checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
368
+ checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
369
369
 
370
370
  [[package]]
371
371
  name = "icu_provider"
372
- version = "2.3.1"
372
+ version = "2.4.0"
373
373
  source = "registry+https://github.com/rust-lang/crates.io-index"
374
- checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
374
+ checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
375
375
  dependencies = [
376
376
  "displaydoc",
377
377
  "icu_locale_core",
@@ -897,9 +897,9 @@ checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
897
897
 
898
898
  [[package]]
899
899
  name = "smallvec"
900
- version = "1.16.3"
900
+ version = "1.16.4"
901
901
  source = "registry+https://github.com/rust-lang/crates.io-index"
902
- checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b"
902
+ checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
903
903
 
904
904
  [[package]]
905
905
  name = "stable_deref_trait"
@@ -1004,9 +1004,9 @@ dependencies = [
1004
1004
 
1005
1005
  [[package]]
1006
1006
  name = "tinystr"
1007
- version = "0.8.4"
1007
+ version = "0.8.5"
1008
1008
  source = "registry+https://github.com/rust-lang/crates.io-index"
1009
- checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
1009
+ checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
1010
1010
  dependencies = [
1011
1011
  "displaydoc",
1012
1012
  "zerovec",
@@ -1014,9 +1014,9 @@ dependencies = [
1014
1014
 
1015
1015
  [[package]]
1016
1016
  name = "tokio"
1017
- version = "1.53.3"
1017
+ version = "1.54.1"
1018
1018
  source = "registry+https://github.com/rust-lang/crates.io-index"
1019
- checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e"
1019
+ checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
1020
1020
  dependencies = [
1021
1021
  "pin-project-lite",
1022
1022
  ]
@@ -1120,9 +1120,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
1120
1120
 
1121
1121
  [[package]]
1122
1122
  name = "yoke"
1123
- version = "0.8.3"
1123
+ version = "0.8.4"
1124
1124
  source = "registry+https://github.com/rust-lang/crates.io-index"
1125
- checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
1125
+ checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
1126
1126
  dependencies = [
1127
1127
  "stable_deref_trait",
1128
1128
  "yoke-derive",
@@ -1195,9 +1195,9 @@ dependencies = [
1195
1195
 
1196
1196
  [[package]]
1197
1197
  name = "zerovec"
1198
- version = "0.11.8"
1198
+ version = "0.11.9"
1199
1199
  source = "registry+https://github.com/rust-lang/crates.io-index"
1200
- checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
1200
+ checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
1201
1201
  dependencies = [
1202
1202
  "yoke",
1203
1203
  "zerofrom",
@@ -1206,9 +1206,9 @@ dependencies = [
1206
1206
 
1207
1207
  [[package]]
1208
1208
  name = "zerovec-derive"
1209
- version = "0.11.6"
1209
+ version = "0.11.7"
1210
1210
  source = "registry+https://github.com/rust-lang/crates.io-index"
1211
- checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
1211
+ checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
1212
1212
  dependencies = [
1213
1213
  "proc-macro2",
1214
1214
  "quote",
@@ -1,11 +1,11 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:43d86acd6ca5c60e5484c6647082e19bd47b267ba99994e27d4642a4a3a2b1ac
2
+ # alef:hash:ada94196b1eb7453e4131fa267514d382755d55a82cd30bd90db1323ab8c9fbc
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
6
6
  [package]
7
7
  name = "html-to-markdown-rb"
8
- version = "3.18.6"
8
+ version = "3.18.7"
9
9
  edition = "2024"
10
10
  authors = ["Na'aman Hirschfeld <naaman@xberg.io>", "Tobias Perlstein <tobias@xberg.io>"]
11
11
  license = "MIT"
@@ -31,7 +31,7 @@ visitor = ["html-to-markdown-rs/visitor"]
31
31
 
32
32
  [dependencies]
33
33
  async-trait = "0.1"
34
- html-to-markdown-rs = { version = "3.18.6", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
34
+ html-to-markdown-rs = { version = "3.18.7", features = ["serde", "metadata", "visitor", "inline-images", "testkit"] }
35
35
  magnus = "0.9"
36
36
  rb-sys = ">=0.9.130, <0.10"
37
37
  serde = { version = "1", features = ["derive"] }
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:b6d61bd5ff22300c6e6fbed28fdf0552577fb61799af32cc2d7a7244ab333361
2
+ // alef:hash:71422c48948c3ed5a6716f00e2d54cb32804161fd701c7c7549a6fcf652e6bf5
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -97,6 +97,7 @@ pub struct ConversionOptions {
97
97
  preserve_tags: Vec<String>,
98
98
  skip_images: bool,
99
99
  inline_data_media: InlineDataMedia,
100
+ use_accessible_names: bool,
100
101
  hidden_content: HiddenContent,
101
102
  url_escape_style: UrlEscapeStyle,
102
103
  link_style: LinkStyle,
@@ -469,6 +470,15 @@ impl ConversionOptions {
469
470
  })?,
470
471
  None => InlineDataMedia::Keep,
471
472
  },
473
+ use_accessible_names: match kwargs.get(ruby.to_symbol("use_accessible_names")) {
474
+ Some(v) => bool::try_convert(v).map_err(|e| {
475
+ magnus::Error::new(
476
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
477
+ format!("invalid value for `use_accessible_names`: {}", e),
478
+ )
479
+ })?,
480
+ None => true,
481
+ },
472
482
  hidden_content: match kwargs.get(ruby.to_symbol("hidden_content")) {
473
483
  Some(v) => HiddenContent::try_convert(v).map_err(|e| {
474
484
  magnus::Error::new(
@@ -738,6 +748,10 @@ impl ConversionOptions {
738
748
  self.inline_data_media.clone()
739
749
  }
740
750
 
751
+ fn use_accessible_names(&self) -> bool {
752
+ self.use_accessible_names
753
+ }
754
+
741
755
  fn hidden_content(&self) -> HiddenContent {
742
756
  self.hidden_content.clone()
743
757
  }
@@ -834,6 +848,7 @@ pub struct ConversionOptionsUpdate {
834
848
  preserve_tags: Option<Vec<String>>,
835
849
  skip_images: Option<bool>,
836
850
  inline_data_media: Option<InlineDataMedia>,
851
+ use_accessible_names: Option<bool>,
837
852
  hidden_content: Option<HiddenContent>,
838
853
  url_escape_style: Option<UrlEscapeStyle>,
839
854
  link_style: Option<LinkStyle>,
@@ -1215,6 +1230,18 @@ impl ConversionOptionsUpdate {
1215
1230
  })?),
1216
1231
  None => None,
1217
1232
  },
1233
+ use_accessible_names: match kwargs
1234
+ .get(ruby.to_symbol("use_accessible_names"))
1235
+ .filter(|v| !v.is_nil())
1236
+ {
1237
+ Some(v) => Some(bool::try_convert(v).map_err(|e| {
1238
+ magnus::Error::new(
1239
+ unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
1240
+ format!("invalid value for `use_accessible_names`: {}", e),
1241
+ )
1242
+ })?),
1243
+ None => None,
1244
+ },
1218
1245
  hidden_content: match kwargs.get(ruby.to_symbol("hidden_content")).filter(|v| !v.is_nil()) {
1219
1246
  Some(v) => Some(HiddenContent::try_convert(v).map_err(|e| {
1220
1247
  magnus::Error::new(
@@ -1487,6 +1514,10 @@ impl ConversionOptionsUpdate {
1487
1514
  self.inline_data_media.clone()
1488
1515
  }
1489
1516
 
1517
+ fn use_accessible_names(&self) -> Option<bool> {
1518
+ self.use_accessible_names
1519
+ }
1520
+
1490
1521
  fn hidden_content(&self) -> Option<HiddenContent> {
1491
1522
  self.hidden_content.clone()
1492
1523
  }
@@ -7070,6 +7101,7 @@ impl From<ConversionOptions> for html_to_markdown_rs::options::ConversionOptions
7070
7101
  preserve_tags: val.preserve_tags.into_iter().collect(),
7071
7102
  skip_images: val.skip_images,
7072
7103
  inline_data_media: val.inline_data_media.into(),
7104
+ use_accessible_names: val.use_accessible_names,
7073
7105
  hidden_content: val.hidden_content.into(),
7074
7106
  url_escape_style: val.url_escape_style.into(),
7075
7107
  link_style: val.link_style.into(),
@@ -7128,6 +7160,7 @@ impl From<html_to_markdown_rs::options::ConversionOptions> for ConversionOptions
7128
7160
  preserve_tags: val.preserve_tags.into_iter().collect(),
7129
7161
  skip_images: val.skip_images,
7130
7162
  inline_data_media: val.inline_data_media.into(),
7163
+ use_accessible_names: val.use_accessible_names,
7131
7164
  hidden_content: val.hidden_content.into(),
7132
7165
  url_escape_style: val.url_escape_style.into(),
7133
7166
  link_style: val.link_style.into(),
@@ -7185,6 +7218,7 @@ impl From<html_to_markdown_rs::options::ConversionOptionsUpdate> for ConversionO
7185
7218
  preserve_tags: val.preserve_tags.map(|v| v.into_iter().collect()),
7186
7219
  skip_images: val.skip_images,
7187
7220
  inline_data_media: val.inline_data_media.map(Into::into),
7221
+ use_accessible_names: val.use_accessible_names,
7188
7222
  hidden_content: val.hidden_content.map(Into::into),
7189
7223
  url_escape_style: val.url_escape_style.map(Into::into),
7190
7224
  link_style: val.link_style.map(Into::into),
@@ -8420,11 +8454,49 @@ impl From<html_to_markdown_rs::options::WhitespaceMode> for WhitespaceMode {
8420
8454
  }
8421
8455
  }
8422
8456
 
8423
- /// Convert a `html_to_markdown_rs::error::ConversionError` error to a Magnus runtime error.
8457
+ /// Convert the error a core call returned into the typed Ruby exception of its family. An error
8458
+ /// of a type with no converter becomes a `RuntimeError` with the message.
8459
+ #[allow(dead_code)]
8460
+ fn alef_magnus_err<E: std::fmt::Display + 'static>(e: E) -> magnus::Error {
8461
+ let message = e.to_string();
8462
+ #[allow(unused_variables)]
8463
+ let any: Box<dyn std::any::Any> = Box::new(e);
8464
+ let any = match any.downcast::<html_to_markdown_rs::error::ConversionError>() {
8465
+ Ok(typed) => return conversion_error_to_magnus_err(*typed),
8466
+ Err(any) => any,
8467
+ };
8468
+ let _ = any;
8469
+ magnus::Error::new(
8470
+ unsafe { magnus::Ruby::get_unchecked() }.exception_runtime_error(),
8471
+ message,
8472
+ )
8473
+ }
8474
+
8475
+ /// Convert a `html_to_markdown_rs::error::ConversionError` error to a typed Ruby exception.
8424
8476
  #[allow(dead_code)]
8425
8477
  fn conversion_error_to_magnus_err(e: html_to_markdown_rs::error::ConversionError) -> magnus::Error {
8426
- let msg = e.to_string();
8427
- magnus::Error::new(unsafe { magnus::Ruby::get_unchecked() }.exception_runtime_error(), msg)
8478
+ use magnus::prelude::*;
8479
+ let message = e.to_string();
8480
+ let ruby = unsafe { magnus::Ruby::get_unchecked() };
8481
+ #[allow(unreachable_patterns)]
8482
+ let class_name = match &e {
8483
+ html_to_markdown_rs::error::ConversionError::ParseError(..) => "ParseError",
8484
+ html_to_markdown_rs::error::ConversionError::SanitizationError(..) => "SanitizationError",
8485
+ html_to_markdown_rs::error::ConversionError::ConfigError(..) => "ConfigError",
8486
+ html_to_markdown_rs::error::ConversionError::IoError(..) => "IoError",
8487
+ html_to_markdown_rs::error::ConversionError::Panic(..) => "PanicError",
8488
+ html_to_markdown_rs::error::ConversionError::InvalidInput(..) => "InvalidInputError",
8489
+ html_to_markdown_rs::error::ConversionError::InputTooLarge { .. } => "InputTooLargeError",
8490
+ html_to_markdown_rs::error::ConversionError::Other(..) => "OtherError",
8491
+ _ => "ConversionError",
8492
+ };
8493
+ let build = || -> Result<magnus::Error, magnus::Error> {
8494
+ let module = ruby.define_module("HtmlToMarkdownRs")?;
8495
+ let class: magnus::ExceptionClass = module.const_get(class_name)?;
8496
+ let exception = class.new_instance((message.as_str(),))?;
8497
+ Ok(magnus::Error::from(exception))
8498
+ };
8499
+ build().unwrap_or_else(|_| magnus::Error::new(ruby.exception_runtime_error(), message))
8428
8500
  }
8429
8501
 
8430
8502
  #[magnus::init]
@@ -8517,6 +8589,11 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
8517
8589
 
8518
8590
  class.define_method("inline_data_media", method!(ConversionOptions::inline_data_media, 0))?;
8519
8591
 
8592
+ class.define_method(
8593
+ "use_accessible_names",
8594
+ method!(ConversionOptions::use_accessible_names, 0),
8595
+ )?;
8596
+
8520
8597
  class.define_method("hidden_content", method!(ConversionOptions::hidden_content, 0))?;
8521
8598
 
8522
8599
  class.define_method("url_escape_style", method!(ConversionOptions::url_escape_style, 0))?;
@@ -8658,6 +8735,11 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
8658
8735
  method!(ConversionOptionsUpdate::inline_data_media, 0),
8659
8736
  )?;
8660
8737
 
8738
+ class.define_method(
8739
+ "use_accessible_names",
8740
+ method!(ConversionOptionsUpdate::use_accessible_names, 0),
8741
+ )?;
8742
+
8661
8743
  class.define_method("hidden_content", method!(ConversionOptionsUpdate::hidden_content, 0))?;
8662
8744
 
8663
8745
  class.define_method(
@@ -9010,5 +9092,15 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
9010
9092
 
9011
9093
  module.define_module_function("convert", function!(convert, -1))?;
9012
9094
 
9095
+ let conversion_error_class = module.define_error("ConversionError", ruby.exception_standard_error())?;
9096
+ let parse_error_class = module.define_error("ParseError", conversion_error_class)?;
9097
+ let sanitization_error_class = module.define_error("SanitizationError", conversion_error_class)?;
9098
+ let config_error_class = module.define_error("ConfigError", conversion_error_class)?;
9099
+ let io_error_class = module.define_error("IoError", conversion_error_class)?;
9100
+ let panic_error_class = module.define_error("PanicError", conversion_error_class)?;
9101
+ let invalid_input_error_class = module.define_error("InvalidInputError", conversion_error_class)?;
9102
+ let input_too_large_error_class = module.define_error("InputTooLargeError", conversion_error_class)?;
9103
+ let other_error_class = module.define_error("OtherError", conversion_error_class)?;
9104
+
9013
9105
  Ok(())
9014
9106
  }
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:e90d67885156fd26c02ed8c039c97e94a8952f927f71c2ba4a501543e4b86b9d
2
+ # alef:hash:d237009ab3b656420cb26aeb135fb1cf648029444bb34a8583d36feddc02da36
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
  # frozen_string_literal: true
6
6
 
7
7
  module HtmlToMarkdown
8
8
  ## The version string for this package.
9
- VERSION = "3.18.6"
9
+ VERSION = "3.18.7"
10
10
  end
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:7e44e5dc91835ebf404d75449ed2551d0fa980cdfa15ba6064871d3aa3ecde5b
2
+ # alef:hash:b61c3a1ce940a4abd4e06f83687b3557a485d83d7451fad630c72b325b0def95
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
@@ -45,6 +45,7 @@ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Fl
45
45
  attr_reader preserve_tags: Array[String]
46
46
  attr_reader skip_images: bool
47
47
  attr_reader inline_data_media: enum_InlineDataMedia
48
+ attr_reader use_accessible_names: bool
48
49
  attr_reader hidden_content: enum_HiddenContent
49
50
  attr_reader url_escape_style: enum_UrlEscapeStyle
50
51
  attr_reader link_style: enum_LinkStyle
@@ -61,7 +62,7 @@ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Fl
61
62
  attr_reader base_url: String?
62
63
  attr_reader visitor: VisitorHandle?
63
64
 
64
- def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String, ?visitor: VisitorHandle) -> void
65
+ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?use_accessible_names: bool, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String, ?visitor: VisitorHandle) -> void
65
66
  end
66
67
 
67
68
  class ConversionOptionsUpdate
@@ -100,6 +101,7 @@ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_List
100
101
  attr_reader preserve_tags: Array[String]?
101
102
  attr_reader skip_images: bool?
102
103
  attr_reader inline_data_media: enum_InlineDataMedia?
104
+ attr_reader use_accessible_names: bool?
103
105
  attr_reader hidden_content: enum_HiddenContent?
104
106
  attr_reader url_escape_style: enum_UrlEscapeStyle?
105
107
  attr_reader link_style: enum_LinkStyle?
@@ -116,7 +118,7 @@ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_List
116
118
  attr_reader base_url: String?
117
119
  attr_reader visitor: VisitorHandle?
118
120
 
119
- def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptionsUpdate, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer?, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer?, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String?, ?visitor: VisitorHandle) -> void
121
+ def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?expand_abbreviations: bool, ?include_blockquote_citations: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptionsUpdate, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?inline_data_media: enum_InlineDataMedia, ?use_accessible_names: bool, ?hidden_content: enum_HiddenContent, ?url_escape_style: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?max_input_size: Integer?, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer?, ?exclude_selectors: Array[String], ?tier_strategy: enum_TierStrategy, ?base_url: String?, ?visitor: VisitorHandle) -> void
120
122
  end
121
123
 
122
124
  class ConversionResult
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-to-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.6
4
+ version: 3.18.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-10-22 00:00:00.000000000 Z
12
+ date: 2026-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys