html-to-markdown 3.4.0.pre.rc.41 → 3.4.0.pre.rc.43

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: 13efcc636eb968fb99d23ff4c64981d11e8b6789ae016e44c802ed73e3ae27bf
4
- data.tar.gz: 733a01f4f7a2bceb5b1c954662fdc87e8da221b888feaa31c4ce01c0402712f9
3
+ metadata.gz: cbdc63a4ae6c531b1f62401f4dbe888a5a042027fdae86be4901149b84f225af
4
+ data.tar.gz: 58a3d43a0ccc07529a099abd7886ab2a535e14c2c8463e6b456467a0636c2ecc
5
5
  SHA512:
6
- metadata.gz: 2e715db68fe46cfb724a3314fd58aee611cf3be6b90ed7cec9af889f3ab69028fb1b0bd9e869f76b56ed56adcf53f9a27791fe588228ae170aad134d6a3cbfa1
7
- data.tar.gz: 64b3c1c418b20e6b4548cda291dac8daf193920ea8c976811cc88c7bacb1e49b00c2d1d14ab0c94fc87c021752df6c9104d382e9e94148a67270231896bb6330
6
+ metadata.gz: 9ff16a6849e06e4946d87c8c4539dd477334f01cfeb9a723bd3204d6abc45c731fec908cdaaaed3a34eb9d7cb61eef94f4bb5d1a713d1039649b9a84fb060189
7
+ data.tar.gz: 5c77c5220ddb924cabca0977f77240ee6366ef46b630a18bcfb1d101b200f2384920594a569141fdcd24bf56f5a231b71821e8d985c046910f0119c413fdbf78
@@ -1,7 +1,7 @@
1
1
 
2
2
  [package]
3
3
  name = "html-to-markdown-rb"
4
- version = "3.4.0-rc.41"
4
+ version = "3.4.0-rc.43"
5
5
  edition = "2024"
6
6
  license = "MIT"
7
7
  [workspace]
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:535ae39b6dc8d3b614ad01ec403d9ede3a78609c5874702cd9fd570bf657968d
2
+ // alef:hash:3a1a61f25eb3b8540cdf6763b0699998f046528df3a1bd9ae0f96d6c1efae442
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -245,9 +245,13 @@ impl HeaderMetadata {
245
245
  fn is_valid(&self) -> bool {
246
246
  let core_self = html_to_markdown_rs::metadata::HeaderMetadata {
247
247
  level: self.level,
248
+
248
249
  text: self.text.clone(),
250
+
249
251
  id: self.id.clone(),
252
+
250
253
  depth: self.depth,
254
+
251
255
  html_offset: self.html_offset,
252
256
  };
253
257
  core_self.is_valid()
@@ -2698,6 +2702,38 @@ impl magnus::TryConvert for NodeContent {
2698
2702
 
2699
2703
  unsafe impl IntoValueFromNative for NodeContent {}
2700
2704
  unsafe impl TryConvertOwned for NodeContent {}
2705
+ impl NodeContent {
2706
+ fn paragraph(&self) -> Option<String> {
2707
+ match self {
2708
+ Self::Paragraph { text } => Some(text.clone()),
2709
+ _ => None,
2710
+ }
2711
+ }
2712
+ fn list(&self) -> Option<bool> {
2713
+ match self {
2714
+ Self::List { ordered } => Some(ordered.clone()),
2715
+ _ => None,
2716
+ }
2717
+ }
2718
+ fn list_item(&self) -> Option<String> {
2719
+ match self {
2720
+ Self::ListItem { text } => Some(text.clone()),
2721
+ _ => None,
2722
+ }
2723
+ }
2724
+ fn table(&self) -> Option<TableGrid> {
2725
+ match self {
2726
+ Self::Table { grid } => Some(grid.clone()),
2727
+ _ => None,
2728
+ }
2729
+ }
2730
+ fn metadata_block(&self) -> Option<Vec<String>> {
2731
+ match self {
2732
+ Self::MetadataBlock { entries } => Some(entries.clone()),
2733
+ _ => None,
2734
+ }
2735
+ }
2736
+ }
2701
2737
 
2702
2738
  #[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
2703
2739
  #[serde(tag = "annotation_type")]
@@ -2738,6 +2774,7 @@ impl magnus::TryConvert for AnnotationKind {
2738
2774
 
2739
2775
  unsafe impl IntoValueFromNative for AnnotationKind {}
2740
2776
  unsafe impl TryConvertOwned for AnnotationKind {}
2777
+ impl AnnotationKind {}
2741
2778
 
2742
2779
  #[derive(Clone, Copy, PartialEq, Eq, Debug, serde::Serialize, serde::Deserialize)]
2743
2780
  pub enum WarningKind {
@@ -3121,6 +3158,20 @@ impl magnus::TryConvert for VisitResult {
3121
3158
 
3122
3159
  unsafe impl IntoValueFromNative for VisitResult {}
3123
3160
  unsafe impl TryConvertOwned for VisitResult {}
3161
+ impl VisitResult {
3162
+ fn custom(&self) -> Option<String> {
3163
+ match self {
3164
+ Self::Custom { _0 } => Some(_0.clone()),
3165
+ _ => None,
3166
+ }
3167
+ }
3168
+ fn error(&self) -> Option<String> {
3169
+ match self {
3170
+ Self::Error { _0 } => Some(_0.clone()),
3171
+ _ => None,
3172
+ }
3173
+ }
3174
+ }
3124
3175
 
3125
3176
  #[allow(clippy::missing_errors_doc)]
3126
3177
  #[allow(unused_variables)]
@@ -3186,10 +3237,6 @@ impl std::fmt::Debug for RbHtmlVisitorBridge {
3186
3237
  }
3187
3238
  }
3188
3239
 
3189
- // alef-magnus 0.14.33 codegen bug: bridge_struct_impl.rs.jinja exists but
3190
- // trait_bridge.rs never renders it, so the `new` constructor is missing from
3191
- // the generated source even though the template defines it. Hand-patched here
3192
- // to unblock Ruby builds; remove once alef regen produces it.
3193
3240
  impl RbHtmlVisitorBridge {
3194
3241
  pub fn new(rb_obj: magnus::Value) -> Self {
3195
3242
  Self { rb_obj }
@@ -3202,13 +3249,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3202
3249
  if !responds {
3203
3250
  return html_to_markdown_rs::VisitResult::Continue;
3204
3251
  }
3205
-
3206
3252
  let result: Result<magnus::Value, magnus::Error> = self
3207
3253
  .rb_obj
3208
3254
  .funcall("visit_element_start", (nodecontext_to_rb_hash(_ctx),));
3209
3255
  match result {
3210
3256
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3211
3257
  Ok(val) => {
3258
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3212
3259
  if let Some(hash) = magnus::RHash::from_value(val) {
3213
3260
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3214
3261
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3234,7 +3281,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3234
3281
  if !responds {
3235
3282
  return html_to_markdown_rs::VisitResult::Continue;
3236
3283
  }
3237
-
3238
3284
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3239
3285
  "visit_element_end",
3240
3286
  (nodecontext_to_rb_hash(_ctx), {
@@ -3245,6 +3291,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3245
3291
  match result {
3246
3292
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3247
3293
  Ok(val) => {
3294
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3248
3295
  if let Some(hash) = magnus::RHash::from_value(val) {
3249
3296
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3250
3297
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3266,7 +3313,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3266
3313
  if !responds {
3267
3314
  return html_to_markdown_rs::VisitResult::Continue;
3268
3315
  }
3269
-
3270
3316
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3271
3317
  "visit_text",
3272
3318
  (nodecontext_to_rb_hash(_ctx), {
@@ -3277,6 +3323,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3277
3323
  match result {
3278
3324
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3279
3325
  Ok(val) => {
3326
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3280
3327
  if let Some(hash) = magnus::RHash::from_value(val) {
3281
3328
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3282
3329
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3304,7 +3351,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3304
3351
  if !responds {
3305
3352
  return html_to_markdown_rs::VisitResult::Continue;
3306
3353
  }
3307
-
3308
3354
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3309
3355
  "visit_link",
3310
3356
  (
@@ -3329,6 +3375,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3329
3375
  match result {
3330
3376
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3331
3377
  Ok(val) => {
3378
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3332
3379
  if let Some(hash) = magnus::RHash::from_value(val) {
3333
3380
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3334
3381
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3356,7 +3403,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3356
3403
  if !responds {
3357
3404
  return html_to_markdown_rs::VisitResult::Continue;
3358
3405
  }
3359
-
3360
3406
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3361
3407
  "visit_image",
3362
3408
  (
@@ -3381,6 +3427,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3381
3427
  match result {
3382
3428
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3383
3429
  Ok(val) => {
3430
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3384
3431
  if let Some(hash) = magnus::RHash::from_value(val) {
3385
3432
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3386
3433
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3408,7 +3455,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3408
3455
  if !responds {
3409
3456
  return html_to_markdown_rs::VisitResult::Continue;
3410
3457
  }
3411
-
3412
3458
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3413
3459
  "visit_heading",
3414
3460
  (
@@ -3430,6 +3476,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3430
3476
  match result {
3431
3477
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3432
3478
  Ok(val) => {
3479
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3433
3480
  if let Some(hash) = magnus::RHash::from_value(val) {
3434
3481
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3435
3482
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3456,7 +3503,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3456
3503
  if !responds {
3457
3504
  return html_to_markdown_rs::VisitResult::Continue;
3458
3505
  }
3459
-
3460
3506
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3461
3507
  "visit_code_block",
3462
3508
  (
@@ -3477,6 +3523,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3477
3523
  match result {
3478
3524
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3479
3525
  Ok(val) => {
3526
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3480
3527
  if let Some(hash) = magnus::RHash::from_value(val) {
3481
3528
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3482
3529
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3502,7 +3549,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3502
3549
  if !responds {
3503
3550
  return html_to_markdown_rs::VisitResult::Continue;
3504
3551
  }
3505
-
3506
3552
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3507
3553
  "visit_code_inline",
3508
3554
  (nodecontext_to_rb_hash(_ctx), {
@@ -3513,6 +3559,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3513
3559
  match result {
3514
3560
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3515
3561
  Ok(val) => {
3562
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3516
3563
  if let Some(hash) = magnus::RHash::from_value(val) {
3517
3564
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3518
3565
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3540,7 +3587,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3540
3587
  if !responds {
3541
3588
  return html_to_markdown_rs::VisitResult::Continue;
3542
3589
  }
3543
-
3544
3590
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3545
3591
  "visit_list_item",
3546
3592
  (
@@ -3559,6 +3605,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3559
3605
  match result {
3560
3606
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3561
3607
  Ok(val) => {
3608
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3562
3609
  if let Some(hash) = magnus::RHash::from_value(val) {
3563
3610
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3564
3611
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3584,13 +3631,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3584
3631
  if !responds {
3585
3632
  return html_to_markdown_rs::VisitResult::Continue;
3586
3633
  }
3587
-
3588
3634
  let result: Result<magnus::Value, magnus::Error> = self
3589
3635
  .rb_obj
3590
3636
  .funcall("visit_list_start", (nodecontext_to_rb_hash(_ctx), _ordered));
3591
3637
  match result {
3592
3638
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3593
3639
  Ok(val) => {
3640
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3594
3641
  if let Some(hash) = magnus::RHash::from_value(val) {
3595
3642
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3596
3643
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3617,7 +3664,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3617
3664
  if !responds {
3618
3665
  return html_to_markdown_rs::VisitResult::Continue;
3619
3666
  }
3620
-
3621
3667
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3622
3668
  "visit_list_end",
3623
3669
  (nodecontext_to_rb_hash(_ctx), _ordered, {
@@ -3628,6 +3674,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3628
3674
  match result {
3629
3675
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3630
3676
  Ok(val) => {
3677
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3631
3678
  if let Some(hash) = magnus::RHash::from_value(val) {
3632
3679
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3633
3680
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3649,13 +3696,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3649
3696
  if !responds {
3650
3697
  return html_to_markdown_rs::VisitResult::Continue;
3651
3698
  }
3652
-
3653
3699
  let result: Result<magnus::Value, magnus::Error> = self
3654
3700
  .rb_obj
3655
3701
  .funcall("visit_table_start", (nodecontext_to_rb_hash(_ctx),));
3656
3702
  match result {
3657
3703
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3658
3704
  Ok(val) => {
3705
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3659
3706
  if let Some(hash) = magnus::RHash::from_value(val) {
3660
3707
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3661
3708
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3682,7 +3729,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3682
3729
  if !responds {
3683
3730
  return html_to_markdown_rs::VisitResult::Continue;
3684
3731
  }
3685
-
3686
3732
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3687
3733
  "visit_table_row",
3688
3734
  (
@@ -3700,6 +3746,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3700
3746
  match result {
3701
3747
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3702
3748
  Ok(val) => {
3749
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3703
3750
  if let Some(hash) = magnus::RHash::from_value(val) {
3704
3751
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3705
3752
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3725,7 +3772,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3725
3772
  if !responds {
3726
3773
  return html_to_markdown_rs::VisitResult::Continue;
3727
3774
  }
3728
-
3729
3775
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3730
3776
  "visit_table_end",
3731
3777
  (nodecontext_to_rb_hash(_ctx), {
@@ -3736,6 +3782,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3736
3782
  match result {
3737
3783
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3738
3784
  Ok(val) => {
3785
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3739
3786
  if let Some(hash) = magnus::RHash::from_value(val) {
3740
3787
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3741
3788
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3762,7 +3809,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3762
3809
  if !responds {
3763
3810
  return html_to_markdown_rs::VisitResult::Continue;
3764
3811
  }
3765
-
3766
3812
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3767
3813
  "visit_blockquote",
3768
3814
  (
@@ -3777,6 +3823,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3777
3823
  match result {
3778
3824
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3779
3825
  Ok(val) => {
3826
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3780
3827
  if let Some(hash) = magnus::RHash::from_value(val) {
3781
3828
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3782
3829
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3802,7 +3849,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3802
3849
  if !responds {
3803
3850
  return html_to_markdown_rs::VisitResult::Continue;
3804
3851
  }
3805
-
3806
3852
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3807
3853
  "visit_strong",
3808
3854
  (nodecontext_to_rb_hash(_ctx), {
@@ -3813,6 +3859,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3813
3859
  match result {
3814
3860
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3815
3861
  Ok(val) => {
3862
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3816
3863
  if let Some(hash) = magnus::RHash::from_value(val) {
3817
3864
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3818
3865
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3838,7 +3885,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3838
3885
  if !responds {
3839
3886
  return html_to_markdown_rs::VisitResult::Continue;
3840
3887
  }
3841
-
3842
3888
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3843
3889
  "visit_emphasis",
3844
3890
  (nodecontext_to_rb_hash(_ctx), {
@@ -3849,6 +3895,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3849
3895
  match result {
3850
3896
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3851
3897
  Ok(val) => {
3898
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3852
3899
  if let Some(hash) = magnus::RHash::from_value(val) {
3853
3900
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3854
3901
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3874,7 +3921,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3874
3921
  if !responds {
3875
3922
  return html_to_markdown_rs::VisitResult::Continue;
3876
3923
  }
3877
-
3878
3924
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3879
3925
  "visit_strikethrough",
3880
3926
  (nodecontext_to_rb_hash(_ctx), {
@@ -3885,6 +3931,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3885
3931
  match result {
3886
3932
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3887
3933
  Ok(val) => {
3934
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3888
3935
  if let Some(hash) = magnus::RHash::from_value(val) {
3889
3936
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3890
3937
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3910,7 +3957,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3910
3957
  if !responds {
3911
3958
  return html_to_markdown_rs::VisitResult::Continue;
3912
3959
  }
3913
-
3914
3960
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3915
3961
  "visit_underline",
3916
3962
  (nodecontext_to_rb_hash(_ctx), {
@@ -3921,6 +3967,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3921
3967
  match result {
3922
3968
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3923
3969
  Ok(val) => {
3970
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3924
3971
  if let Some(hash) = magnus::RHash::from_value(val) {
3925
3972
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3926
3973
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3946,7 +3993,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3946
3993
  if !responds {
3947
3994
  return html_to_markdown_rs::VisitResult::Continue;
3948
3995
  }
3949
-
3950
3996
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3951
3997
  "visit_subscript",
3952
3998
  (nodecontext_to_rb_hash(_ctx), {
@@ -3957,6 +4003,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3957
4003
  match result {
3958
4004
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3959
4005
  Ok(val) => {
4006
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3960
4007
  if let Some(hash) = magnus::RHash::from_value(val) {
3961
4008
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3962
4009
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -3982,7 +4029,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3982
4029
  if !responds {
3983
4030
  return html_to_markdown_rs::VisitResult::Continue;
3984
4031
  }
3985
-
3986
4032
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
3987
4033
  "visit_superscript",
3988
4034
  (nodecontext_to_rb_hash(_ctx), {
@@ -3993,6 +4039,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
3993
4039
  match result {
3994
4040
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
3995
4041
  Ok(val) => {
4042
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
3996
4043
  if let Some(hash) = magnus::RHash::from_value(val) {
3997
4044
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
3998
4045
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4014,7 +4061,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4014
4061
  if !responds {
4015
4062
  return html_to_markdown_rs::VisitResult::Continue;
4016
4063
  }
4017
-
4018
4064
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4019
4065
  "visit_mark",
4020
4066
  (nodecontext_to_rb_hash(_ctx), {
@@ -4025,6 +4071,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4025
4071
  match result {
4026
4072
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4027
4073
  Ok(val) => {
4074
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4028
4075
  if let Some(hash) = magnus::RHash::from_value(val) {
4029
4076
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4030
4077
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4046,12 +4093,12 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4046
4093
  if !responds {
4047
4094
  return html_to_markdown_rs::VisitResult::Continue;
4048
4095
  }
4049
-
4050
4096
  let result: Result<magnus::Value, magnus::Error> =
4051
4097
  self.rb_obj.funcall("visit_line_break", (nodecontext_to_rb_hash(_ctx),));
4052
4098
  match result {
4053
4099
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4054
4100
  Ok(val) => {
4101
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4055
4102
  if let Some(hash) = magnus::RHash::from_value(val) {
4056
4103
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4057
4104
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4073,13 +4120,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4073
4120
  if !responds {
4074
4121
  return html_to_markdown_rs::VisitResult::Continue;
4075
4122
  }
4076
-
4077
4123
  let result: Result<magnus::Value, magnus::Error> = self
4078
4124
  .rb_obj
4079
4125
  .funcall("visit_horizontal_rule", (nodecontext_to_rb_hash(_ctx),));
4080
4126
  match result {
4081
4127
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4082
4128
  Ok(val) => {
4129
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4083
4130
  if let Some(hash) = magnus::RHash::from_value(val) {
4084
4131
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4085
4132
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4106,7 +4153,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4106
4153
  if !responds {
4107
4154
  return html_to_markdown_rs::VisitResult::Continue;
4108
4155
  }
4109
-
4110
4156
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4111
4157
  "visit_custom_element",
4112
4158
  (
@@ -4124,6 +4170,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4124
4170
  match result {
4125
4171
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4126
4172
  Ok(val) => {
4173
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4127
4174
  if let Some(hash) = magnus::RHash::from_value(val) {
4128
4175
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4129
4176
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4151,13 +4198,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4151
4198
  if !responds {
4152
4199
  return html_to_markdown_rs::VisitResult::Continue;
4153
4200
  }
4154
-
4155
4201
  let result: Result<magnus::Value, magnus::Error> = self
4156
4202
  .rb_obj
4157
4203
  .funcall("visit_definition_list_start", (nodecontext_to_rb_hash(_ctx),));
4158
4204
  match result {
4159
4205
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4160
4206
  Ok(val) => {
4207
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4161
4208
  if let Some(hash) = magnus::RHash::from_value(val) {
4162
4209
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4163
4210
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4183,7 +4230,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4183
4230
  if !responds {
4184
4231
  return html_to_markdown_rs::VisitResult::Continue;
4185
4232
  }
4186
-
4187
4233
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4188
4234
  "visit_definition_term",
4189
4235
  (nodecontext_to_rb_hash(_ctx), {
@@ -4194,6 +4240,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4194
4240
  match result {
4195
4241
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4196
4242
  Ok(val) => {
4243
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4197
4244
  if let Some(hash) = magnus::RHash::from_value(val) {
4198
4245
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4199
4246
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4222,7 +4269,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4222
4269
  if !responds {
4223
4270
  return html_to_markdown_rs::VisitResult::Continue;
4224
4271
  }
4225
-
4226
4272
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4227
4273
  "visit_definition_description",
4228
4274
  (nodecontext_to_rb_hash(_ctx), {
@@ -4233,6 +4279,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4233
4279
  match result {
4234
4280
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4235
4281
  Ok(val) => {
4282
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4236
4283
  if let Some(hash) = magnus::RHash::from_value(val) {
4237
4284
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4238
4285
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4261,7 +4308,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4261
4308
  if !responds {
4262
4309
  return html_to_markdown_rs::VisitResult::Continue;
4263
4310
  }
4264
-
4265
4311
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4266
4312
  "visit_definition_list_end",
4267
4313
  (nodecontext_to_rb_hash(_ctx), {
@@ -4272,6 +4318,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4272
4318
  match result {
4273
4319
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4274
4320
  Ok(val) => {
4321
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4275
4322
  if let Some(hash) = magnus::RHash::from_value(val) {
4276
4323
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4277
4324
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4298,7 +4345,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4298
4345
  if !responds {
4299
4346
  return html_to_markdown_rs::VisitResult::Continue;
4300
4347
  }
4301
-
4302
4348
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4303
4349
  "visit_form",
4304
4350
  (
@@ -4322,6 +4368,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4322
4368
  match result {
4323
4369
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4324
4370
  Ok(val) => {
4371
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4325
4372
  if let Some(hash) = magnus::RHash::from_value(val) {
4326
4373
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4327
4374
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4349,7 +4396,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4349
4396
  if !responds {
4350
4397
  return html_to_markdown_rs::VisitResult::Continue;
4351
4398
  }
4352
-
4353
4399
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4354
4400
  "visit_input",
4355
4401
  (
@@ -4377,6 +4423,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4377
4423
  match result {
4378
4424
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4379
4425
  Ok(val) => {
4426
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4380
4427
  if let Some(hash) = magnus::RHash::from_value(val) {
4381
4428
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4382
4429
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4402,7 +4449,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4402
4449
  if !responds {
4403
4450
  return html_to_markdown_rs::VisitResult::Continue;
4404
4451
  }
4405
-
4406
4452
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4407
4453
  "visit_button",
4408
4454
  (nodecontext_to_rb_hash(_ctx), {
@@ -4413,6 +4459,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4413
4459
  match result {
4414
4460
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4415
4461
  Ok(val) => {
4462
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4416
4463
  if let Some(hash) = magnus::RHash::from_value(val) {
4417
4464
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4418
4465
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4438,7 +4485,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4438
4485
  if !responds {
4439
4486
  return html_to_markdown_rs::VisitResult::Continue;
4440
4487
  }
4441
-
4442
4488
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4443
4489
  "visit_audio",
4444
4490
  (nodecontext_to_rb_hash(_ctx), {
@@ -4452,6 +4498,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4452
4498
  match result {
4453
4499
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4454
4500
  Ok(val) => {
4501
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4455
4502
  if let Some(hash) = magnus::RHash::from_value(val) {
4456
4503
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4457
4504
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4477,7 +4524,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4477
4524
  if !responds {
4478
4525
  return html_to_markdown_rs::VisitResult::Continue;
4479
4526
  }
4480
-
4481
4527
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4482
4528
  "visit_video",
4483
4529
  (nodecontext_to_rb_hash(_ctx), {
@@ -4491,6 +4537,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4491
4537
  match result {
4492
4538
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4493
4539
  Ok(val) => {
4540
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4494
4541
  if let Some(hash) = magnus::RHash::from_value(val) {
4495
4542
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4496
4543
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4516,7 +4563,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4516
4563
  if !responds {
4517
4564
  return html_to_markdown_rs::VisitResult::Continue;
4518
4565
  }
4519
-
4520
4566
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4521
4567
  "visit_iframe",
4522
4568
  (nodecontext_to_rb_hash(_ctx), {
@@ -4530,6 +4576,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4530
4576
  match result {
4531
4577
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4532
4578
  Ok(val) => {
4579
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4533
4580
  if let Some(hash) = magnus::RHash::from_value(val) {
4534
4581
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4535
4582
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4555,13 +4602,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4555
4602
  if !responds {
4556
4603
  return html_to_markdown_rs::VisitResult::Continue;
4557
4604
  }
4558
-
4559
4605
  let result: Result<magnus::Value, magnus::Error> = self
4560
4606
  .rb_obj
4561
4607
  .funcall("visit_details", (nodecontext_to_rb_hash(_ctx), _open));
4562
4608
  match result {
4563
4609
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4564
4610
  Ok(val) => {
4611
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4565
4612
  if let Some(hash) = magnus::RHash::from_value(val) {
4566
4613
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4567
4614
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4587,7 +4634,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4587
4634
  if !responds {
4588
4635
  return html_to_markdown_rs::VisitResult::Continue;
4589
4636
  }
4590
-
4591
4637
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4592
4638
  "visit_summary",
4593
4639
  (nodecontext_to_rb_hash(_ctx), {
@@ -4598,6 +4644,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4598
4644
  match result {
4599
4645
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4600
4646
  Ok(val) => {
4647
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4601
4648
  if let Some(hash) = magnus::RHash::from_value(val) {
4602
4649
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4603
4650
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4619,13 +4666,13 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4619
4666
  if !responds {
4620
4667
  return html_to_markdown_rs::VisitResult::Continue;
4621
4668
  }
4622
-
4623
4669
  let result: Result<magnus::Value, magnus::Error> = self
4624
4670
  .rb_obj
4625
4671
  .funcall("visit_figure_start", (nodecontext_to_rb_hash(_ctx),));
4626
4672
  match result {
4627
4673
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4628
4674
  Ok(val) => {
4675
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4629
4676
  if let Some(hash) = magnus::RHash::from_value(val) {
4630
4677
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4631
4678
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4651,7 +4698,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4651
4698
  if !responds {
4652
4699
  return html_to_markdown_rs::VisitResult::Continue;
4653
4700
  }
4654
-
4655
4701
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4656
4702
  "visit_figcaption",
4657
4703
  (nodecontext_to_rb_hash(_ctx), {
@@ -4662,6 +4708,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4662
4708
  match result {
4663
4709
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4664
4710
  Ok(val) => {
4711
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4665
4712
  if let Some(hash) = magnus::RHash::from_value(val) {
4666
4713
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4667
4714
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
@@ -4687,7 +4734,6 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4687
4734
  if !responds {
4688
4735
  return html_to_markdown_rs::VisitResult::Continue;
4689
4736
  }
4690
-
4691
4737
  let result: Result<magnus::Value, magnus::Error> = self.rb_obj.funcall(
4692
4738
  "visit_figure_end",
4693
4739
  (nodecontext_to_rb_hash(_ctx), {
@@ -4698,6 +4744,7 @@ impl html_to_markdown_rs::visitor::HtmlVisitor for RbHtmlVisitorBridge {
4698
4744
  match result {
4699
4745
  Err(_) => html_to_markdown_rs::VisitResult::Continue,
4700
4746
  Ok(val) => {
4747
+ // Hash with :custom key — e.g. { custom: '--- {text} ---' }
4701
4748
  if let Some(hash) = magnus::RHash::from_value(val) {
4702
4749
  let ruby = unsafe { magnus::Ruby::get_unchecked() };
4703
4750
  if let Some(custom_val) = hash.get(ruby.to_symbol("custom")) {
Binary file
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:990c47eb4d87f0600f1e6da62d32bf37c84cf430faf31d78f5df7425a93a0f0c
2
+ # alef:hash:cc45dd331b1ce70dafcc656c39fd0b0dd3457b2beaa8b4be0b9243d0e205a361
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -7,7 +7,6 @@
7
7
 
8
8
  require 'json'
9
9
  require 'html_to_markdown_rb'
10
-
11
10
  module HtmlToMarkdown
12
11
  # Re-export all public module functions from the native extension
13
12
  HtmlToMarkdownRs.methods(false).each do |m|
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:59180f77939967d58bc06c3175b2b97055f6d3e9e0aa899b6ea1b53bfc03e3f6
2
+ # alef:hash:0f94527b64db68a5f23ef7f6f5a002fb4129c500d20cc9c076bc8fa24d80a4c7
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
6
6
  # frozen_string_literal: true
7
7
 
8
8
  module HtmlToMarkdown
9
- VERSION = '3.4.0.pre.rc.41'
9
+ VERSION = '3.4.0.pre.rc.43'
10
10
  end
data/vendor/Cargo.toml CHANGED
@@ -3,7 +3,7 @@ members = ["html-to-markdown-rs"]
3
3
  resolver = "2"
4
4
 
5
5
  [workspace.package]
6
- version = "3.4.0-rc.41"
6
+ version = "3.4.0-rc.43"
7
7
  edition = "2024"
8
8
  rust-version = "1.85"
9
9
  authors = ["Na'aman Hirschfeld <naaman@kreuzberg.dev>"]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "html-to-markdown-rs"
3
- version = "3.4.0-rc.41"
3
+ version = "3.4.0-rc.43"
4
4
  edition = "2024"
5
5
  authors = ["Na'aman Hirschfeld <naaman@kreuzberg.dev>"]
6
6
  license = "MIT"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-to-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0.pre.rc.41
4
+ version: 3.4.0.pre.rc.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kreuzberg Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-08 00:00:00.000000000 Z
11
+ date: 2026-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys