html-to-markdown 3.10.5 → 3.11.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.
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:f44000653901d10b61e9069d2e901a11b70b0e643ba63d75f2222729c924ae82
2
+ // alef:hash:c268c3be7857936c7076febffa6ea8e9309fc1f7e099092426fb87efd0616d33
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -770,11 +770,11 @@ impl ConversionOptions {
770
770
  heading_style: kwargs
771
771
  .get(ruby.to_symbol("heading_style"))
772
772
  .and_then(|v| HeadingStyle::try_convert(v).ok())
773
- .unwrap_or_default(),
773
+ .unwrap_or(HeadingStyle::Atx),
774
774
  list_indent_type: kwargs
775
775
  .get(ruby.to_symbol("list_indent_type"))
776
776
  .and_then(|v| ListIndentType::try_convert(v).ok())
777
- .unwrap_or_default(),
777
+ .unwrap_or(ListIndentType::Spaces),
778
778
  list_indent_width: kwargs
779
779
  .get(ruby.to_symbol("list_indent_width"))
780
780
  .and_then(|v| usize::try_convert(v).ok())
@@ -826,7 +826,7 @@ impl ConversionOptions {
826
826
  highlight_style: kwargs
827
827
  .get(ruby.to_symbol("highlight_style"))
828
828
  .and_then(|v| HighlightStyle::try_convert(v).ok())
829
- .unwrap_or_default(),
829
+ .unwrap_or(HighlightStyle::DoubleEqual),
830
830
  extract_metadata: kwargs
831
831
  .get(ruby.to_symbol("extract_metadata"))
832
832
  .and_then(|v| bool::try_convert(v).ok())
@@ -834,7 +834,7 @@ impl ConversionOptions {
834
834
  whitespace_mode: kwargs
835
835
  .get(ruby.to_symbol("whitespace_mode"))
836
836
  .and_then(|v| WhitespaceMode::try_convert(v).ok())
837
- .unwrap_or_default(),
837
+ .unwrap_or(WhitespaceMode::Normalized),
838
838
  strip_newlines: kwargs
839
839
  .get(ruby.to_symbol("strip_newlines"))
840
840
  .and_then(|v| bool::try_convert(v).ok())
@@ -866,7 +866,7 @@ impl ConversionOptions {
866
866
  code_block_style: kwargs
867
867
  .get(ruby.to_symbol("code_block_style"))
868
868
  .and_then(|v| CodeBlockStyle::try_convert(v).ok())
869
- .unwrap_or_default(),
869
+ .unwrap_or(CodeBlockStyle::Backticks),
870
870
  keep_inline_images_in: kwargs
871
871
  .get(ruby.to_symbol("keep_inline_images_in"))
872
872
  .and_then(|v| <Vec<String>>::try_convert(v).ok())
@@ -898,15 +898,15 @@ impl ConversionOptions {
898
898
  url_escape_style: kwargs
899
899
  .get(ruby.to_symbol("url_escape_style"))
900
900
  .and_then(|v| UrlEscapeStyle::try_convert(v).ok())
901
- .unwrap_or_default(),
901
+ .unwrap_or(UrlEscapeStyle::Angle),
902
902
  link_style: kwargs
903
903
  .get(ruby.to_symbol("link_style"))
904
904
  .and_then(|v| LinkStyle::try_convert(v).ok())
905
- .unwrap_or_default(),
905
+ .unwrap_or(LinkStyle::Inline),
906
906
  output_format: kwargs
907
907
  .get(ruby.to_symbol("output_format"))
908
908
  .and_then(|v| OutputFormat::try_convert(v).ok())
909
- .unwrap_or_default(),
909
+ .unwrap_or(OutputFormat::Markdown),
910
910
  include_document_structure: kwargs
911
911
  .get(ruby.to_symbol("include_document_structure"))
912
912
  .and_then(|v| bool::try_convert(v).ok())
@@ -1567,7 +1567,7 @@ impl PreprocessingOptions {
1567
1567
  preset: kwargs
1568
1568
  .get(ruby.to_symbol("preset"))
1569
1569
  .and_then(|v| PreprocessingPreset::try_convert(v).ok())
1570
- .unwrap_or_default(),
1570
+ .unwrap_or(PreprocessingPreset::Standard),
1571
1571
  remove_navigation: kwargs
1572
1572
  .get(ruby.to_symbol("remove_navigation"))
1573
1573
  .and_then(|v| bool::try_convert(v).ok())
@@ -2276,8 +2276,12 @@ impl Default for GridCell {
2276
2276
  content: String::new(),
2277
2277
  row: 0,
2278
2278
  col: 0,
2279
- row_span: 0,
2280
- col_span: 0,
2279
+ row_span: serde_json::from_str::<html_to_markdown_rs::GridCell>(r#"{"content":"","row":0,"col":0}"#)
2280
+ .expect("alef-generated default JSON for `GridCell` failed to deserialize")
2281
+ .row_span,
2282
+ col_span: serde_json::from_str::<html_to_markdown_rs::GridCell>(r#"{"content":"","row":0,"col":0}"#)
2283
+ .expect("alef-generated default JSON for `GridCell` failed to deserialize")
2284
+ .col_span,
2281
2285
  is_header: false,
2282
2286
  }
2283
2287
  }
@@ -2305,11 +2309,19 @@ impl GridCell {
2305
2309
  row_span: kwargs
2306
2310
  .get(ruby.to_symbol("row_span"))
2307
2311
  .and_then(|v| u32::try_convert(v).ok())
2308
- .unwrap_or(0),
2312
+ .unwrap_or(
2313
+ serde_json::from_str::<html_to_markdown_rs::GridCell>(r#"{"content":"","row":0,"col":0}"#)
2314
+ .expect("alef-generated default JSON for `GridCell` failed to deserialize")
2315
+ .row_span,
2316
+ ),
2309
2317
  col_span: kwargs
2310
2318
  .get(ruby.to_symbol("col_span"))
2311
2319
  .and_then(|v| u32::try_convert(v).ok())
2312
- .unwrap_or(0),
2320
+ .unwrap_or(
2321
+ serde_json::from_str::<html_to_markdown_rs::GridCell>(r#"{"content":"","row":0,"col":0}"#)
2322
+ .expect("alef-generated default JSON for `GridCell` failed to deserialize")
2323
+ .col_span,
2324
+ ),
2313
2325
  is_header: kwargs
2314
2326
  .get(ruby.to_symbol("is_header"))
2315
2327
  .and_then(|v| bool::try_convert(v).ok())
@@ -2813,6 +2825,7 @@ unsafe impl IntoValueFromNative for StructuredDataType {}
2813
2825
  unsafe impl TryConvertOwned for StructuredDataType {}
2814
2826
 
2815
2827
  #[derive(Clone, Copy, PartialEq, Eq, Debug, serde::Serialize, serde::Deserialize)]
2828
+ #[serde(rename_all = "snake_case")]
2816
2829
  pub enum TierStrategy {
2817
2830
  Auto,
2818
2831
  Tier2,
@@ -3807,12 +3820,14 @@ unsafe impl IntoValueFromNative for NodeType {}
3807
3820
  unsafe impl TryConvertOwned for NodeType {}
3808
3821
 
3809
3822
  #[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
3823
+ #[serde(tag = "type", content = "output")]
3824
+ #[serde(rename_all = "snake_case")]
3810
3825
  pub enum VisitResult {
3811
3826
  Continue,
3812
- Custom { _0: String },
3827
+ Custom(String),
3813
3828
  Skip,
3814
3829
  PreserveHtml,
3815
- Error { _0: String },
3830
+ Error(String),
3816
3831
  }
3817
3832
 
3818
3833
  impl Default for VisitResult {
@@ -3849,6 +3864,7 @@ impl magnus::TryConvert for VisitResult {
3849
3864
  // If that fails, try treating it as a plain string value and wrap in quotes
3850
3865
  // If both fail, try as Custom variant (for untagged enum support)
3851
3866
  serde_json::from_str(&json_str)
3867
+ .or_else(|_| serde_json::from_value(serde_json::json!({ "type": json_str })))
3852
3868
  .or_else(|_| serde_json::from_str(&format!("\"{json_str}\"")))
3853
3869
  .or_else(|_| {
3854
3870
  // Try as a JSON string for Custom variant (untagged enums accept any remaining value)
@@ -3863,6 +3879,20 @@ impl magnus::TryConvert for VisitResult {
3863
3879
 
3864
3880
  unsafe impl IntoValueFromNative for VisitResult {}
3865
3881
  unsafe impl TryConvertOwned for VisitResult {}
3882
+ impl VisitResult {
3883
+ pub fn custom(&self) -> Option<&String> {
3884
+ match self {
3885
+ Self::Custom(_0) => Some(_0),
3886
+ _ => None,
3887
+ }
3888
+ }
3889
+ pub fn error(&self) -> Option<&String> {
3890
+ match self {
3891
+ Self::Error(_0) => Some(_0),
3892
+ _ => None,
3893
+ }
3894
+ }
3895
+ }
3866
3896
 
3867
3897
  #[allow(clippy::missing_errors_doc)]
3868
3898
  #[allow(unused_variables)]
@@ -3969,18 +3999,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3969
3999
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3970
4000
  if let Some(hash) = magnus::RHash::from_value(val) {
3971
4001
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3972
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4002
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
3973
4003
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
3974
4004
  }
3975
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4005
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
3976
4006
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
3977
4007
  }
3978
4008
  }
3979
4009
  let s: String = val.to_string();
3980
4010
  match s.as_str() {
3981
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
3982
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
3983
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4011
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4012
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4013
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
3984
4014
  _ => html_to_markdown_rs::VisitResult::Custom(s),
3985
4015
  }
3986
4016
  }
@@ -4000,18 +4030,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4000
4030
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4001
4031
  if let Some(hash) = magnus::RHash::from_value(val) {
4002
4032
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4003
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4033
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4004
4034
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4005
4035
  }
4006
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4036
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4007
4037
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4008
4038
  }
4009
4039
  }
4010
4040
  let s: String = val.to_string();
4011
4041
  match s.as_str() {
4012
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4013
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4014
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4042
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4043
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4044
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4015
4045
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4016
4046
  }
4017
4047
  }
@@ -4039,18 +4069,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4039
4069
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4040
4070
  if let Some(hash) = magnus::RHash::from_value(val) {
4041
4071
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4042
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4072
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4043
4073
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4044
4074
  }
4045
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4075
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4046
4076
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4047
4077
  }
4048
4078
  }
4049
4079
  let s: String = val.to_string();
4050
4080
  match s.as_str() {
4051
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4052
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4053
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4081
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4082
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4083
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4054
4084
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4055
4085
  }
4056
4086
  }
@@ -4094,18 +4124,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4094
4124
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4095
4125
  if let Some(hash) = magnus::RHash::from_value(val) {
4096
4126
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4097
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4127
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4098
4128
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4099
4129
  }
4100
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4130
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4101
4131
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4102
4132
  }
4103
4133
  }
4104
4134
  let s: String = val.to_string();
4105
4135
  match s.as_str() {
4106
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4107
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4108
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4136
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4137
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4138
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4109
4139
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4110
4140
  }
4111
4141
  }
@@ -4149,18 +4179,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4149
4179
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4150
4180
  if let Some(hash) = magnus::RHash::from_value(val) {
4151
4181
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4152
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4182
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4153
4183
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4154
4184
  }
4155
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4185
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4156
4186
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4157
4187
  }
4158
4188
  }
4159
4189
  let s: String = val.to_string();
4160
4190
  match s.as_str() {
4161
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4162
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4163
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4191
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4192
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4193
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4164
4194
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4165
4195
  }
4166
4196
  }
@@ -4201,18 +4231,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4201
4231
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4202
4232
  if let Some(hash) = magnus::RHash::from_value(val) {
4203
4233
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4204
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4234
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4205
4235
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4206
4236
  }
4207
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4237
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4208
4238
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4209
4239
  }
4210
4240
  }
4211
4241
  let s: String = val.to_string();
4212
4242
  match s.as_str() {
4213
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4214
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4215
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4243
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4244
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4245
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4216
4246
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4217
4247
  }
4218
4248
  }
@@ -4251,18 +4281,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4251
4281
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4252
4282
  if let Some(hash) = magnus::RHash::from_value(val) {
4253
4283
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4254
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4284
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4255
4285
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4256
4286
  }
4257
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4287
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4258
4288
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4259
4289
  }
4260
4290
  }
4261
4291
  let s: String = val.to_string();
4262
4292
  match s.as_str() {
4263
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4264
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4265
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4293
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4294
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4295
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4266
4296
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4267
4297
  }
4268
4298
  }
@@ -4290,18 +4320,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4290
4320
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4291
4321
  if let Some(hash) = magnus::RHash::from_value(val) {
4292
4322
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4293
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4323
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4294
4324
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4295
4325
  }
4296
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4326
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4297
4327
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4298
4328
  }
4299
4329
  }
4300
4330
  let s: String = val.to_string();
4301
4331
  match s.as_str() {
4302
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4303
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4304
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4332
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4333
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4334
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4305
4335
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4306
4336
  }
4307
4337
  }
@@ -4339,18 +4369,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4339
4369
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4340
4370
  if let Some(hash) = magnus::RHash::from_value(val) {
4341
4371
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4342
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4372
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4343
4373
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4344
4374
  }
4345
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4375
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4346
4376
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4347
4377
  }
4348
4378
  }
4349
4379
  let s: String = val.to_string();
4350
4380
  match s.as_str() {
4351
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4352
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4353
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4381
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4382
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4383
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4354
4384
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4355
4385
  }
4356
4386
  }
@@ -4374,18 +4404,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4374
4404
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4375
4405
  if let Some(hash) = magnus::RHash::from_value(val) {
4376
4406
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4377
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4407
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4378
4408
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4379
4409
  }
4380
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4410
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4381
4411
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4382
4412
  }
4383
4413
  }
4384
4414
  let s: String = val.to_string();
4385
4415
  match s.as_str() {
4386
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4387
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4388
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4416
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4417
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4418
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4389
4419
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4390
4420
  }
4391
4421
  }
@@ -4414,18 +4444,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4414
4444
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4415
4445
  if let Some(hash) = magnus::RHash::from_value(val) {
4416
4446
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4417
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4447
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4418
4448
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4419
4449
  }
4420
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4450
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4421
4451
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4422
4452
  }
4423
4453
  }
4424
4454
  let s: String = val.to_string();
4425
4455
  match s.as_str() {
4426
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4427
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4428
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4456
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4457
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4458
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4429
4459
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4430
4460
  }
4431
4461
  }
@@ -4445,18 +4475,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4445
4475
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4446
4476
  if let Some(hash) = magnus::RHash::from_value(val) {
4447
4477
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4448
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4478
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4449
4479
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4450
4480
  }
4451
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4481
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4452
4482
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4453
4483
  }
4454
4484
  }
4455
4485
  let s: String = val.to_string();
4456
4486
  match s.as_str() {
4457
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4458
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4459
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4487
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4488
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4489
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4460
4490
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4461
4491
  }
4462
4492
  }
@@ -4492,18 +4522,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4492
4522
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4493
4523
  if let Some(hash) = magnus::RHash::from_value(val) {
4494
4524
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4495
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4525
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4496
4526
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4497
4527
  }
4498
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4528
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4499
4529
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4500
4530
  }
4501
4531
  }
4502
4532
  let s: String = val.to_string();
4503
4533
  match s.as_str() {
4504
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4505
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4506
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4534
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4535
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4536
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4507
4537
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4508
4538
  }
4509
4539
  }
@@ -4531,18 +4561,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4531
4561
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4532
4562
  if let Some(hash) = magnus::RHash::from_value(val) {
4533
4563
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4534
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4564
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4535
4565
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4536
4566
  }
4537
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4567
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4538
4568
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4539
4569
  }
4540
4570
  }
4541
4571
  let s: String = val.to_string();
4542
4572
  match s.as_str() {
4543
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4544
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4545
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4573
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4574
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4575
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4546
4576
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4547
4577
  }
4548
4578
  }
@@ -4575,18 +4605,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4575
4605
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4576
4606
  if let Some(hash) = magnus::RHash::from_value(val) {
4577
4607
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4578
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4608
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4579
4609
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4580
4610
  }
4581
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4611
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4582
4612
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4583
4613
  }
4584
4614
  }
4585
4615
  let s: String = val.to_string();
4586
4616
  match s.as_str() {
4587
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4588
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4589
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4617
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4618
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4619
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4590
4620
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4591
4621
  }
4592
4622
  }
@@ -4614,18 +4644,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4614
4644
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4615
4645
  if let Some(hash) = magnus::RHash::from_value(val) {
4616
4646
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4617
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4647
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4618
4648
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4619
4649
  }
4620
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4650
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4621
4651
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4622
4652
  }
4623
4653
  }
4624
4654
  let s: String = val.to_string();
4625
4655
  match s.as_str() {
4626
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4627
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4628
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4656
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4657
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4658
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4629
4659
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4630
4660
  }
4631
4661
  }
@@ -4653,18 +4683,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4653
4683
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4654
4684
  if let Some(hash) = magnus::RHash::from_value(val) {
4655
4685
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4656
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4686
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4657
4687
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4658
4688
  }
4659
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4689
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4660
4690
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4661
4691
  }
4662
4692
  }
4663
4693
  let s: String = val.to_string();
4664
4694
  match s.as_str() {
4665
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4666
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4667
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4695
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4696
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4697
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4668
4698
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4669
4699
  }
4670
4700
  }
@@ -4692,18 +4722,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4692
4722
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4693
4723
  if let Some(hash) = magnus::RHash::from_value(val) {
4694
4724
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4695
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4725
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4696
4726
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4697
4727
  }
4698
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4728
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4699
4729
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4700
4730
  }
4701
4731
  }
4702
4732
  let s: String = val.to_string();
4703
4733
  match s.as_str() {
4704
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4705
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4706
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4734
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4735
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4736
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4707
4737
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4708
4738
  }
4709
4739
  }
@@ -4731,18 +4761,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4731
4761
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4732
4762
  if let Some(hash) = magnus::RHash::from_value(val) {
4733
4763
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4734
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4764
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4735
4765
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4736
4766
  }
4737
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4767
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4738
4768
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4739
4769
  }
4740
4770
  }
4741
4771
  let s: String = val.to_string();
4742
4772
  match s.as_str() {
4743
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4744
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4745
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4773
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4774
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4775
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4746
4776
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4747
4777
  }
4748
4778
  }
@@ -4770,18 +4800,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4770
4800
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4771
4801
  if let Some(hash) = magnus::RHash::from_value(val) {
4772
4802
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4773
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4803
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4774
4804
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4775
4805
  }
4776
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4806
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4777
4807
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4778
4808
  }
4779
4809
  }
4780
4810
  let s: String = val.to_string();
4781
4811
  match s.as_str() {
4782
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4783
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4784
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4812
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4813
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4814
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4785
4815
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4786
4816
  }
4787
4817
  }
@@ -4809,18 +4839,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4809
4839
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4810
4840
  if let Some(hash) = magnus::RHash::from_value(val) {
4811
4841
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4812
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4842
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4813
4843
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4814
4844
  }
4815
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4845
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4816
4846
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4817
4847
  }
4818
4848
  }
4819
4849
  let s: String = val.to_string();
4820
4850
  match s.as_str() {
4821
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4822
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4823
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4851
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4852
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4853
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4824
4854
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4825
4855
  }
4826
4856
  }
@@ -4844,18 +4874,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4844
4874
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4845
4875
  if let Some(hash) = magnus::RHash::from_value(val) {
4846
4876
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4847
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4877
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4848
4878
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4849
4879
  }
4850
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4880
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4851
4881
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4852
4882
  }
4853
4883
  }
4854
4884
  let s: String = val.to_string();
4855
4885
  match s.as_str() {
4856
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4857
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4858
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4886
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4887
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4888
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4859
4889
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4860
4890
  }
4861
4891
  }
@@ -4874,18 +4904,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4874
4904
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4875
4905
  if let Some(hash) = magnus::RHash::from_value(val) {
4876
4906
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4877
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4907
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4878
4908
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4879
4909
  }
4880
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4910
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4881
4911
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4882
4912
  }
4883
4913
  }
4884
4914
  let s: String = val.to_string();
4885
4915
  match s.as_str() {
4886
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4887
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4888
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4916
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4917
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4918
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4889
4919
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4890
4920
  }
4891
4921
  }
@@ -4905,18 +4935,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4905
4935
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4906
4936
  if let Some(hash) = magnus::RHash::from_value(val) {
4907
4937
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4908
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4938
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4909
4939
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4910
4940
  }
4911
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4941
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4912
4942
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4913
4943
  }
4914
4944
  }
4915
4945
  let s: String = val.to_string();
4916
4946
  match s.as_str() {
4917
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4918
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4919
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4947
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4948
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4949
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4920
4950
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4921
4951
  }
4922
4952
  }
@@ -4952,18 +4982,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4952
4982
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4953
4983
  if let Some(hash) = magnus::RHash::from_value(val) {
4954
4984
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4955
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
4985
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4956
4986
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4957
4987
  }
4958
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
4988
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4959
4989
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4960
4990
  }
4961
4991
  }
4962
4992
  let s: String = val.to_string();
4963
4993
  match s.as_str() {
4964
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
4965
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
4966
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
4994
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
4995
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
4996
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
4967
4997
  _ => html_to_markdown_rs::VisitResult::Custom(s),
4968
4998
  }
4969
4999
  }
@@ -4989,18 +5019,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4989
5019
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4990
5020
  if let Some(hash) = magnus::RHash::from_value(val) {
4991
5021
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4992
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5022
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
4993
5023
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
4994
5024
  }
4995
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5025
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
4996
5026
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
4997
5027
  }
4998
5028
  }
4999
5029
  let s: String = val.to_string();
5000
5030
  match s.as_str() {
5001
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5002
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5003
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5031
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5032
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5033
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5004
5034
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5005
5035
  }
5006
5036
  }
@@ -5028,18 +5058,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5028
5058
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5029
5059
  if let Some(hash) = magnus::RHash::from_value(val) {
5030
5060
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5031
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5061
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5032
5062
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5033
5063
  }
5034
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5064
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5035
5065
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5036
5066
  }
5037
5067
  }
5038
5068
  let s: String = val.to_string();
5039
5069
  match s.as_str() {
5040
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5041
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5042
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5070
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5071
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5072
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5043
5073
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5044
5074
  }
5045
5075
  }
@@ -5070,18 +5100,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5070
5100
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5071
5101
  if let Some(hash) = magnus::RHash::from_value(val) {
5072
5102
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5073
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5103
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5074
5104
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5075
5105
  }
5076
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5106
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5077
5107
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5078
5108
  }
5079
5109
  }
5080
5110
  let s: String = val.to_string();
5081
5111
  match s.as_str() {
5082
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5083
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5084
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5112
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5113
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5114
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5085
5115
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5086
5116
  }
5087
5117
  }
@@ -5112,18 +5142,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5112
5142
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5113
5143
  if let Some(hash) = magnus::RHash::from_value(val) {
5114
5144
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5115
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5145
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5116
5146
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5117
5147
  }
5118
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5148
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5119
5149
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5120
5150
  }
5121
5151
  }
5122
5152
  let s: String = val.to_string();
5123
5153
  match s.as_str() {
5124
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5125
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5126
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5154
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5155
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5156
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5127
5157
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5128
5158
  }
5129
5159
  }
@@ -5165,18 +5195,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5165
5195
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5166
5196
  if let Some(hash) = magnus::RHash::from_value(val) {
5167
5197
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5168
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5198
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5169
5199
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5170
5200
  }
5171
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5201
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5172
5202
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5173
5203
  }
5174
5204
  }
5175
5205
  let s: String = val.to_string();
5176
5206
  match s.as_str() {
5177
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5178
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5179
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5207
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5208
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5209
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5180
5210
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5181
5211
  }
5182
5212
  }
@@ -5223,18 +5253,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5223
5253
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5224
5254
  if let Some(hash) = magnus::RHash::from_value(val) {
5225
5255
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5226
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5256
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5227
5257
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5228
5258
  }
5229
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5259
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5230
5260
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5231
5261
  }
5232
5262
  }
5233
5263
  let s: String = val.to_string();
5234
5264
  match s.as_str() {
5235
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5236
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5237
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5265
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5266
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5267
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5238
5268
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5239
5269
  }
5240
5270
  }
@@ -5262,18 +5292,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5262
5292
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5263
5293
  if let Some(hash) = magnus::RHash::from_value(val) {
5264
5294
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5265
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5295
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5266
5296
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5267
5297
  }
5268
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5298
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5269
5299
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5270
5300
  }
5271
5301
  }
5272
5302
  let s: String = val.to_string();
5273
5303
  match s.as_str() {
5274
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5275
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5276
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5304
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5305
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5306
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5277
5307
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5278
5308
  }
5279
5309
  }
@@ -5304,18 +5334,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5304
5334
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5305
5335
  if let Some(hash) = magnus::RHash::from_value(val) {
5306
5336
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5307
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5337
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5308
5338
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5309
5339
  }
5310
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5340
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5311
5341
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5312
5342
  }
5313
5343
  }
5314
5344
  let s: String = val.to_string();
5315
5345
  match s.as_str() {
5316
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5317
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5318
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5346
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5347
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5348
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5319
5349
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5320
5350
  }
5321
5351
  }
@@ -5346,18 +5376,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5346
5376
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5347
5377
  if let Some(hash) = magnus::RHash::from_value(val) {
5348
5378
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5349
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5379
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5350
5380
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5351
5381
  }
5352
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5382
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5353
5383
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5354
5384
  }
5355
5385
  }
5356
5386
  let s: String = val.to_string();
5357
5387
  match s.as_str() {
5358
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5359
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5360
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5388
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5389
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5390
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5361
5391
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5362
5392
  }
5363
5393
  }
@@ -5388,18 +5418,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5388
5418
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5389
5419
  if let Some(hash) = magnus::RHash::from_value(val) {
5390
5420
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5391
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5421
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5392
5422
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5393
5423
  }
5394
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5424
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5395
5425
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5396
5426
  }
5397
5427
  }
5398
5428
  let s: String = val.to_string();
5399
5429
  match s.as_str() {
5400
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5401
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5402
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5430
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5431
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5432
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5403
5433
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5404
5434
  }
5405
5435
  }
@@ -5423,18 +5453,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5423
5453
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5424
5454
  if let Some(hash) = magnus::RHash::from_value(val) {
5425
5455
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5426
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5456
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5427
5457
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5428
5458
  }
5429
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5459
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5430
5460
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5431
5461
  }
5432
5462
  }
5433
5463
  let s: String = val.to_string();
5434
5464
  match s.as_str() {
5435
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5436
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5437
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5465
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5466
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5467
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5438
5468
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5439
5469
  }
5440
5470
  }
@@ -5462,18 +5492,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5462
5492
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5463
5493
  if let Some(hash) = magnus::RHash::from_value(val) {
5464
5494
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5465
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5495
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5466
5496
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5467
5497
  }
5468
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5498
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5469
5499
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5470
5500
  }
5471
5501
  }
5472
5502
  let s: String = val.to_string();
5473
5503
  match s.as_str() {
5474
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5475
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5476
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5504
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5505
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5506
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5477
5507
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5478
5508
  }
5479
5509
  }
@@ -5493,18 +5523,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5493
5523
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5494
5524
  if let Some(hash) = magnus::RHash::from_value(val) {
5495
5525
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5496
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5526
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5497
5527
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5498
5528
  }
5499
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5529
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5500
5530
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5501
5531
  }
5502
5532
  }
5503
5533
  let s: String = val.to_string();
5504
5534
  match s.as_str() {
5505
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5506
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5507
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5535
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5536
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5537
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5508
5538
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5509
5539
  }
5510
5540
  }
@@ -5532,18 +5562,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5532
5562
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5533
5563
  if let Some(hash) = magnus::RHash::from_value(val) {
5534
5564
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5535
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5565
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5536
5566
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5537
5567
  }
5538
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5568
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5539
5569
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5540
5570
  }
5541
5571
  }
5542
5572
  let s: String = val.to_string();
5543
5573
  match s.as_str() {
5544
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5545
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5546
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5574
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5575
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5576
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5547
5577
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5548
5578
  }
5549
5579
  }
@@ -5571,18 +5601,18 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
5571
5601
  // Hash with :custom key — e.g. { custom: '--- {text} ---' }
5572
5602
  if let Some(hash) = magnus::RHash::from_value(val) {
5573
5603
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
5574
- if let Some(custom_val) = hash.get(ruby.to_symbol("Custom")) {
5604
+ if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
5575
5605
  return html_to_markdown_rs::VisitResult::Custom(custom_val.to_string());
5576
5606
  }
5577
- if let Some(custom_val) = hash.get(ruby.to_symbol("Error")) {
5607
+ if let Some(custom_val) = hash.get(ruby.to_symbol("error")) {
5578
5608
  return html_to_markdown_rs::VisitResult::Error(custom_val.to_string());
5579
5609
  }
5580
5610
  }
5581
5611
  let s: String = val.to_string();
5582
5612
  match s.as_str() {
5583
- "Continue" => html_to_markdown_rs::VisitResult::Continue,
5584
- "Skip" => html_to_markdown_rs::VisitResult::Skip,
5585
- "PreserveHtml" => html_to_markdown_rs::VisitResult::PreserveHtml,
5613
+ "continue" => html_to_markdown_rs::VisitResult::Continue,
5614
+ "skip" => html_to_markdown_rs::VisitResult::Skip,
5615
+ "preserve_html" => html_to_markdown_rs::VisitResult::PreserveHtml,
5586
5616
  _ => html_to_markdown_rs::VisitResult::Custom(s),
5587
5617
  }
5588
5618
  }
@@ -5638,7 +5668,6 @@ impl From<html_to_markdown_rs::metadata::DocumentMetadata> for DocumentMetadata
5638
5668
  }
5639
5669
  }
5640
5670
 
5641
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5642
5671
  impl From<HeaderMetadata> for html_to_markdown_rs::metadata::HeaderMetadata {
5643
5672
  fn from(val: HeaderMetadata) -> Self {
5644
5673
  Self {
@@ -5651,7 +5680,7 @@ impl From<HeaderMetadata> for html_to_markdown_rs::metadata::HeaderMetadata {
5651
5680
  }
5652
5681
  }
5653
5682
 
5654
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5683
+ #[allow(clippy::redundant_closure)]
5655
5684
  impl From<html_to_markdown_rs::metadata::HeaderMetadata> for HeaderMetadata {
5656
5685
  fn from(val: html_to_markdown_rs::metadata::HeaderMetadata) -> Self {
5657
5686
  Self {
@@ -5720,7 +5749,7 @@ impl From<html_to_markdown_rs::metadata::ImageMetadata> for ImageMetadata {
5720
5749
  }
5721
5750
  }
5722
5751
 
5723
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5752
+ #[allow(clippy::useless_conversion)]
5724
5753
  impl From<StructuredData> for html_to_markdown_rs::metadata::StructuredData {
5725
5754
  fn from(val: StructuredData) -> Self {
5726
5755
  Self {
@@ -5743,7 +5772,7 @@ impl From<html_to_markdown_rs::metadata::StructuredData> for StructuredData {
5743
5772
  }
5744
5773
 
5745
5774
  #[allow(clippy::needless_update)]
5746
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5775
+ #[allow(clippy::useless_conversion)]
5747
5776
  impl From<HtmlMetadata> for html_to_markdown_rs::metadata::HtmlMetadata {
5748
5777
  fn from(val: HtmlMetadata) -> Self {
5749
5778
  Self {
@@ -5757,7 +5786,7 @@ impl From<HtmlMetadata> for html_to_markdown_rs::metadata::HtmlMetadata {
5757
5786
  }
5758
5787
  }
5759
5788
 
5760
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5789
+ #[allow(clippy::useless_conversion)]
5761
5790
  impl From<html_to_markdown_rs::metadata::HtmlMetadata> for HtmlMetadata {
5762
5791
  fn from(val: html_to_markdown_rs::metadata::HtmlMetadata) -> Self {
5763
5792
  Self {
@@ -5771,7 +5800,7 @@ impl From<html_to_markdown_rs::metadata::HtmlMetadata> for HtmlMetadata {
5771
5800
  }
5772
5801
 
5773
5802
  #[allow(clippy::needless_update)]
5774
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5803
+ #[allow(clippy::useless_conversion)]
5775
5804
  impl From<ConversionOptions> for html_to_markdown_rs::options::ConversionOptions {
5776
5805
  fn from(val: ConversionOptions) -> Self {
5777
5806
  Self {
@@ -5823,7 +5852,7 @@ impl From<ConversionOptions> for html_to_markdown_rs::options::ConversionOptions
5823
5852
  }
5824
5853
  }
5825
5854
 
5826
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5855
+ #[allow(clippy::useless_conversion)]
5827
5856
  impl From<html_to_markdown_rs::options::ConversionOptions> for ConversionOptions {
5828
5857
  fn from(val: html_to_markdown_rs::options::ConversionOptions) -> Self {
5829
5858
  Self {
@@ -5926,7 +5955,7 @@ impl From<html_to_markdown_rs::options::ConversionOptionsUpdate> for ConversionO
5926
5955
  }
5927
5956
 
5928
5957
  #[allow(clippy::needless_update)]
5929
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5958
+ #[allow(clippy::useless_conversion)]
5930
5959
  impl From<PreprocessingOptions> for html_to_markdown_rs::options::PreprocessingOptions {
5931
5960
  fn from(val: PreprocessingOptions) -> Self {
5932
5961
  Self {
@@ -5939,7 +5968,7 @@ impl From<PreprocessingOptions> for html_to_markdown_rs::options::PreprocessingO
5939
5968
  }
5940
5969
  }
5941
5970
 
5942
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5971
+ #[allow(clippy::useless_conversion)]
5943
5972
  impl From<html_to_markdown_rs::options::PreprocessingOptions> for PreprocessingOptions {
5944
5973
  fn from(val: html_to_markdown_rs::options::PreprocessingOptions) -> Self {
5945
5974
  Self {
@@ -5951,7 +5980,7 @@ impl From<html_to_markdown_rs::options::PreprocessingOptions> for PreprocessingO
5951
5980
  }
5952
5981
  }
5953
5982
 
5954
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5983
+ #[allow(clippy::useless_conversion)]
5955
5984
  impl From<html_to_markdown_rs::options::PreprocessingOptionsUpdate> for PreprocessingOptionsUpdate {
5956
5985
  fn from(val: html_to_markdown_rs::options::PreprocessingOptionsUpdate) -> Self {
5957
5986
  Self {
@@ -5963,7 +5992,6 @@ impl From<html_to_markdown_rs::options::PreprocessingOptionsUpdate> for Preproce
5963
5992
  }
5964
5993
  }
5965
5994
 
5966
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5967
5995
  impl From<ImageDimensions> for html_to_markdown_rs::ImageDimensions {
5968
5996
  fn from(val: ImageDimensions) -> Self {
5969
5997
  Self {
@@ -5973,7 +6001,6 @@ impl From<ImageDimensions> for html_to_markdown_rs::ImageDimensions {
5973
6001
  }
5974
6002
  }
5975
6003
 
5976
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
5977
6004
  impl From<html_to_markdown_rs::ImageDimensions> for ImageDimensions {
5978
6005
  fn from(val: html_to_markdown_rs::ImageDimensions) -> Self {
5979
6006
  Self {
@@ -5983,7 +6010,7 @@ impl From<html_to_markdown_rs::ImageDimensions> for ImageDimensions {
5983
6010
  }
5984
6011
  }
5985
6012
 
5986
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6013
+ #[allow(clippy::useless_conversion)]
5987
6014
  impl From<DocumentStructure> for html_to_markdown_rs::DocumentStructure {
5988
6015
  fn from(val: DocumentStructure) -> Self {
5989
6016
  Self {
@@ -6035,7 +6062,7 @@ impl From<html_to_markdown_rs::DocumentNode> for DocumentNode {
6035
6062
  }
6036
6063
  }
6037
6064
 
6038
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6065
+ #[allow(clippy::useless_conversion)]
6039
6066
  impl From<TextAnnotation> for html_to_markdown_rs::TextAnnotation {
6040
6067
  fn from(val: TextAnnotation) -> Self {
6041
6068
  Self {
@@ -6046,7 +6073,7 @@ impl From<TextAnnotation> for html_to_markdown_rs::TextAnnotation {
6046
6073
  }
6047
6074
  }
6048
6075
 
6049
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6076
+ #[allow(clippy::useless_conversion)]
6050
6077
  impl From<html_to_markdown_rs::TextAnnotation> for TextAnnotation {
6051
6078
  fn from(val: html_to_markdown_rs::TextAnnotation) -> Self {
6052
6079
  Self {
@@ -6057,7 +6084,6 @@ impl From<html_to_markdown_rs::TextAnnotation> for TextAnnotation {
6057
6084
  }
6058
6085
  }
6059
6086
 
6060
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6061
6087
  impl From<MetadataEntry> for html_to_markdown_rs::MetadataEntry {
6062
6088
  fn from(val: MetadataEntry) -> Self {
6063
6089
  Self {
@@ -6067,7 +6093,6 @@ impl From<MetadataEntry> for html_to_markdown_rs::MetadataEntry {
6067
6093
  }
6068
6094
  }
6069
6095
 
6070
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6071
6096
  impl From<html_to_markdown_rs::MetadataEntry> for MetadataEntry {
6072
6097
  fn from(val: html_to_markdown_rs::MetadataEntry) -> Self {
6073
6098
  Self {
@@ -6078,7 +6103,7 @@ impl From<html_to_markdown_rs::MetadataEntry> for MetadataEntry {
6078
6103
  }
6079
6104
 
6080
6105
  #[allow(clippy::needless_update)]
6081
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6106
+ #[allow(clippy::useless_conversion)]
6082
6107
  impl From<ConversionResult> for html_to_markdown_rs::ConversionResult {
6083
6108
  fn from(val: ConversionResult) -> Self {
6084
6109
  Self {
@@ -6106,7 +6131,7 @@ impl From<html_to_markdown_rs::ConversionResult> for ConversionResult {
6106
6131
  }
6107
6132
 
6108
6133
  #[allow(clippy::needless_update)]
6109
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6134
+ #[allow(clippy::useless_conversion)]
6110
6135
  impl From<TableGrid> for html_to_markdown_rs::TableGrid {
6111
6136
  fn from(val: TableGrid) -> Self {
6112
6137
  Self {
@@ -6118,7 +6143,7 @@ impl From<TableGrid> for html_to_markdown_rs::TableGrid {
6118
6143
  }
6119
6144
  }
6120
6145
 
6121
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6146
+ #[allow(clippy::useless_conversion)]
6122
6147
  impl From<html_to_markdown_rs::TableGrid> for TableGrid {
6123
6148
  fn from(val: html_to_markdown_rs::TableGrid) -> Self {
6124
6149
  Self {
@@ -6129,7 +6154,6 @@ impl From<html_to_markdown_rs::TableGrid> for TableGrid {
6129
6154
  }
6130
6155
  }
6131
6156
 
6132
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6133
6157
  impl From<GridCell> for html_to_markdown_rs::GridCell {
6134
6158
  fn from(val: GridCell) -> Self {
6135
6159
  Self {
@@ -6143,7 +6167,6 @@ impl From<GridCell> for html_to_markdown_rs::GridCell {
6143
6167
  }
6144
6168
  }
6145
6169
 
6146
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6147
6170
  impl From<html_to_markdown_rs::GridCell> for GridCell {
6148
6171
  fn from(val: html_to_markdown_rs::GridCell) -> Self {
6149
6172
  Self {
@@ -6157,7 +6180,7 @@ impl From<html_to_markdown_rs::GridCell> for GridCell {
6157
6180
  }
6158
6181
  }
6159
6182
 
6160
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6183
+ #[allow(clippy::useless_conversion)]
6161
6184
  impl From<TableData> for html_to_markdown_rs::TableData {
6162
6185
  fn from(val: TableData) -> Self {
6163
6186
  Self {
@@ -6167,7 +6190,7 @@ impl From<TableData> for html_to_markdown_rs::TableData {
6167
6190
  }
6168
6191
  }
6169
6192
 
6170
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6193
+ #[allow(clippy::useless_conversion)]
6171
6194
  impl From<html_to_markdown_rs::TableData> for TableData {
6172
6195
  fn from(val: html_to_markdown_rs::TableData) -> Self {
6173
6196
  Self {
@@ -6177,7 +6200,7 @@ impl From<html_to_markdown_rs::TableData> for TableData {
6177
6200
  }
6178
6201
  }
6179
6202
 
6180
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6203
+ #[allow(clippy::useless_conversion)]
6181
6204
  impl From<ProcessingWarning> for html_to_markdown_rs::ProcessingWarning {
6182
6205
  fn from(val: ProcessingWarning) -> Self {
6183
6206
  Self {
@@ -6187,7 +6210,7 @@ impl From<ProcessingWarning> for html_to_markdown_rs::ProcessingWarning {
6187
6210
  }
6188
6211
  }
6189
6212
 
6190
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6213
+ #[allow(clippy::useless_conversion)]
6191
6214
  impl From<html_to_markdown_rs::ProcessingWarning> for ProcessingWarning {
6192
6215
  fn from(val: html_to_markdown_rs::ProcessingWarning) -> Self {
6193
6216
  Self {
@@ -6197,7 +6220,7 @@ impl From<html_to_markdown_rs::ProcessingWarning> for ProcessingWarning {
6197
6220
  }
6198
6221
  }
6199
6222
 
6200
- #[allow(clippy::redundant_closure, clippy::useless_conversion)]
6223
+ #[allow(clippy::useless_conversion)]
6201
6224
  impl From<NodeContext> for html_to_markdown_rs::NodeContext<'_> {
6202
6225
  fn from(val: NodeContext) -> Self {
6203
6226
  html_to_markdown_rs::NodeContext::with_owned_attributes(
@@ -6881,10 +6904,10 @@ impl From<html_to_markdown_rs::VisitResult> for VisitResult {
6881
6904
  fn from(val: html_to_markdown_rs::VisitResult) -> Self {
6882
6905
  match val {
6883
6906
  html_to_markdown_rs::VisitResult::Continue => Self::Continue,
6884
- html_to_markdown_rs::VisitResult::Custom(_0) => Self::Custom { _0: _0.to_string() },
6907
+ html_to_markdown_rs::VisitResult::Custom(_0) => Self::Custom(_0),
6885
6908
  html_to_markdown_rs::VisitResult::Skip => Self::Skip,
6886
6909
  html_to_markdown_rs::VisitResult::PreserveHtml => Self::PreserveHtml,
6887
- html_to_markdown_rs::VisitResult::Error(_0) => Self::Error { _0: _0.to_string() },
6910
+ html_to_markdown_rs::VisitResult::Error(_0) => Self::Error(_0),
6888
6911
  }
6889
6912
  }
6890
6913
  }