@jocmp/mercury-parser 2.4.10 → 2.4.11

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.
@@ -5632,13 +5632,13 @@ var WwwPhoronixComExtractor = {
5632
5632
  selectors: [['meta[name="og:image"]', 'value']]
5633
5633
  },
5634
5634
  content: {
5635
- selectors: ['.content'],
5636
- // Is there anything in the content you selected that needs transformed
5637
- // before it's consumable content? E.g., unusual lazy loaded images
5638
- transforms: {},
5639
- // Is there anything that is in the result that shouldn't be?
5640
- // The clean selectors will remove anything that matches from
5641
- // the result
5635
+ selectors: ['.content', 'article'],
5636
+ defaultCleaner: false,
5637
+ transforms: {
5638
+ h2: function h2(node) {
5639
+ return node.attr('class', 'mercury-parser-keep');
5640
+ }
5641
+ },
5642
5642
  clean: []
5643
5643
  }
5644
5644
  };
package/dist/mercury.js CHANGED
@@ -5587,13 +5587,13 @@ var WwwPhoronixComExtractor = {
5587
5587
  selectors: [['meta[name="og:image"]', 'value']]
5588
5588
  },
5589
5589
  content: {
5590
- selectors: ['.content'],
5591
- // Is there anything in the content you selected that needs transformed
5592
- // before it's consumable content? E.g., unusual lazy loaded images
5593
- transforms: {},
5594
- // Is there anything that is in the result that shouldn't be?
5595
- // The clean selectors will remove anything that matches from
5596
- // the result
5590
+ selectors: ['.content', 'article'],
5591
+ defaultCleaner: false,
5592
+ transforms: {
5593
+ h2: function h2(node) {
5594
+ return node.attr('class', 'mercury-parser-keep');
5595
+ }
5596
+ },
5597
5597
  clean: []
5598
5598
  }
5599
5599
  };