release: 1.0.8 (#164)

pull/165/head 1.0.8
Adam Pash 7 years ago committed by GitHub
parent 453419de72
commit 321c087be6

12
dist/mercury.js vendored

@ -409,7 +409,7 @@ var SPACER_RE = new RegExp('transparent|spacer|blank', 'i');
// but would normally remove
var KEEP_CLASS = 'mercury-parser-keep';
var KEEP_SELECTORS = ['iframe[src^="https://www.youtube.com"]', 'iframe[src^="http://www.youtube.com"]', 'iframe[src^="https://player.vimeo"]', 'iframe[src^="http://player.vimeo"]'];
var KEEP_SELECTORS = ['iframe[src^="https://www.youtube.com"]', 'iframe[src^="https://www.youtube-nocookie.com"]', 'iframe[src^="http://www.youtube.com"]', 'iframe[src^="https://player.vimeo"]', 'iframe[src^="http://player.vimeo"]'];
// A list of tags to strip from the output if we encounter them.
var STRIP_OUTPUT_TAGS = ['title', 'script', 'noscript', 'link', 'style', 'hr', 'embed', 'iframe', 'object'];
@ -5257,16 +5257,20 @@ var ObamawhitehouseArchivesGovExtractor = {
},
content: {
selectors: ['.pane-node-field-forall-body'],
selectors: ['div#content-start', '.pane-node-field-forall-body'],
// Is there anything in the content you selected that needs transformed
// before it's consumable content? E.g., unusual lazy loaded images
transforms: {},
transforms: {
'iframe[src*=youtube]': function iframeSrcYoutube($node) {
$node.parents('.panel-pane').replaceWith($node);
}
},
// Is there anything that is in the result that shouldn't be?
// The clean selectors will remove anything that matches from
// the result
clean: []
clean: ['.pane-node-title', '.pane-custom.pane-1']
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{
"name": "mercury-parser",
"version": "1.0.7",
"version": "1.0.8",
"description": "",
"repository": "github:postlight/mercury-parser",
"main": "./dist/mercury.js",

Loading…
Cancel
Save