- [[`71c4d05037`](https://github.com/postlight/mercury-parser/commit/71c4d05037)] - **chore**: Include "src/shims" for webpack builds for web (#302) (Alexsander Akers)
- [[`a3fe02678c`](https://github.com/postlight/mercury-parser/commit/a3fe02678c)] - **chore**: small CoC typofix (#358) (Frankie Simms)
- [[`437f50a5c8`](https://github.com/postlight/mercury-parser/commit/437f50a5c8)] - **fix**: Initialize Content-Type as empty string if not present (#359) (John Holdun)
- [[`bafa764000`](https://github.com/postlight/mercury-parser/commit/bafa764000)] - **chore**: set up ciftr for failed test reports (#343) (Frankie Simms)
- [[`136d6df798`](https://github.com/postlight/mercury-parser/commit/136d6df798)] - **feat**: Return specific errors on failed parse attempts (Toufic Mouallem)
- [[`a250f403f5`](https://github.com/postlight/mercury-parser/commit/a250f403f5)] - **fix**: Preserve whitespace in certain HTML elements (#333) (Toufic Mouallem)
- [[`2a3ade706d`](https://github.com/postlight/mercury-parser/commit/2a3ade706d)] - **fix**: run parser preview (Adam Pash)
- [[`9714cb70c5`](https://github.com/postlight/mercury-parser/commit/9714cb70c5)] - **feat**: Use Deadspin parser for all Kinja websites (#304) (Toufic Mouallem)
- [[`ed14203e97`](https://github.com/postlight/mercury-parser/commit/ed14203e97)] - **fix**: return early if creating the resource failed. (#285) (Ben Ubois)
- [[`52dfdda553`](https://github.com/postlight/mercury-parser/commit/52dfdda553)] - **deps**: Update mocha to the latest version 🚀 (#282) (greenkeeper[bot])
thrownewError("Unable to fetch content. Original exception was ".concat(response.error));
}elseif(!parseNon2xx){
thrownewError("Resource returned a response status code of ".concat(response.statusCode," and resource was instructed to reject non-2xx level status codes."));
}elseif(!parseNon200){
thrownewError("Resource returned a response status code of ".concat(response.statusCode," and resource was instructed to reject non-200 status codes."));
}
}
@ -1248,6 +1248,7 @@ function absolutize($, rootUrl, attr) {
$("[".concat(attr,"]")).each(function(_,node){
varattrs=getAttrs(node);
varurl=attrs[attr];
if(!url)return;
varabsoluteUrl=URL.resolve(baseUrl||rootUrl,url);
setAttr(node,attr,absoluteUrl);
});
@ -1646,7 +1647,8 @@ var Resource = {
generateDoc:functiongenerateDoc(_ref){
varcontent=_ref.body,
response=_ref.response;
varcontentType=response.headers['content-type'];// TODO: Implement is_text function from
"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.",