Skip to content

Commit

Permalink
Line break in example for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Nov 6, 2022
1 parent 4ec8ae1 commit cde5e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ This returns:
You can pass an `async` function if you want to use `await`, including to import modules from external URLs. This example loads the [Readability.js](https://github.com/mozilla/readability) library from [Skypack](https://www.skypack.dev/) and uses it to extract the core content of a page:

```
shot-scraper javascript https://simonwillison.net/2022/Mar/14/scraping-web-pages-shot-scraper/ "
shot-scraper javascript \
https://simonwillison.net/2022/Mar/14/scraping-web-pages-shot-scraper/ "
async () => {
const readability = await import('https://cdn.skypack.dev/@mozilla/readability');
return (new readability.Readability(document)).parse();
Expand Down

0 comments on commit cde5e74

Please sign in to comment.