- [[`e12c916499`](https://github.com/postlight/mercury-parser/commit/e12c916499)] - **feat**: ability to add custom extractors via api (#484) (Michael Ashley)
- [[`398cba4d66`](https://github.com/postlight/mercury-parser/commit/398cba4d66)] - chore(deps): bump lodash.merge from 4.6.1 to 4.6.2 (#456) (dependabot[bot])
- [[`90e208ea13`](https://github.com/postlight/mercury-parser/commit/90e208ea13)] - chore(deps): bump cached-path-relative from 1.0.0 to 1.0.2 (#472) (dependabot[bot])
- [[`5bb7c58e95`](https://github.com/postlight/mercury-parser/commit/5bb7c58e95)] - chore(deps): bump merge from 1.2.0 to 1.2.1 (#473) (dependabot[bot])
- [[`ce572f3a28`](https://github.com/postlight/mercury-parser/commit/ce572f3a28)] - chore(package): update brfs-babel to version 2.0.0 (#461) (greenkeeper[bot])
- [[`6f65702a6c`](https://github.com/postlight/mercury-parser/commit/6f65702a6c)] - Update moment-timezone to the latest version 🚀 (#455) (greenkeeper[bot])
- [[`c764cebc0c`](https://github.com/postlight/mercury-parser/commit/c764cebc0c)] - chore(package): update remark-cli to version 7.0.0 (#460) (greenkeeper[bot])
- [[`853e041d84`](https://github.com/postlight/mercury-parser/commit/853e041d84)] - **deps**: update husky to the latest version 🚀 (#450) (greenkeeper[bot])
- [[`f42f81218b`](https://github.com/postlight/mercury-parser/commit/f42f81218b)] - **deps**: update iconv-lite to the latest version 🚀 (#447) (greenkeeper[bot])
- [[`592f175270`](https://github.com/postlight/mercury-parser/commit/592f175270)] - **tests**: remove a duplicate test (#448) (Kirill Danshin)
- [[`c11b85f405`](https://github.com/postlight/mercury-parser/commit/c11b85f405)] - **deps**: update eslint-config-prettier to version 5.0.0 (#441) (greenkeeper[bot])
- [[`3b0d5fed69`](https://github.com/postlight/mercury-parser/commit/3b0d5fed69)] - **chore**: prevent adding phantomjs-prebuilt as a dependency in CI. (#412) (Jaen)
- [[`939d181951`](https://github.com/postlight/mercury-parser/commit/939d181951)] - **fix**: support query strings in lazy-loaded srcsets (#387) (Toufic Mouallem)
_opts$fetchAllPages=opts.fetchAllPages,fetchAllPages=_opts$fetchAllPages===void0?true:_opts$fetchAllPages,_opts$fallback=opts.fallback,fallback=_opts$fallback===void0?true:_opts$fallback,_opts$contentType=opts.contentType,contentType=_opts$contentType===void0?'html':_opts$contentType,_opts$headers=opts.headers,headers=_opts$headers===void0?{}:_opts$headers,extend=opts.extend; // if no url was passed and this is the browser version,
_opts$fetchAllPages=opts.fetchAllPages,fetchAllPages=_opts$fetchAllPages===void0?true:_opts$fetchAllPages,_opts$fallback=opts.fallback,fallback=_opts$fallback===void0?true:_opts$fallback,_opts$contentType=opts.contentType,contentType=_opts$contentType===void0?'html':_opts$contentType,_opts$headers=opts.headers,headers=_opts$headers===void0?{}:_opts$headers,extend=opts.extend, customExtractor=opts.customExtractor; // if no url was passed and this is the browser version,
// set url to window.location.href and load the html
// from the current page
@ -7583,6 +7663,11 @@ var Mercury = {
return_context.abrupt("return",$);
case11:
// Add custom extractor via cli.
if(customExtractor){
addExtractor(customExtractor);
}
Extractor=getExtractor(url,parsedUrl,$);// console.log(`Using extractor for ${Extractor.domain}`);
// if html still has not been set (i.e., url passed to Mercury.parse),
// set html from the response of Resource.create
@ -7618,11 +7703,11 @@ var Mercury = {
_result=result,title=_result.title,next_page_url=_result.next_page_url;// Fetch more pages if next_page_url found
"description":"Mercury transforms web pages into clean text. Publishers and programmers use it to make the web make sense, and readers use it to read any web article comfortably.",