docs: add instructions for browser usage to parse current page (#231)

pull/232/head^2
Toufic Mouallem 5 years ago committed by Adam Pash
parent 4ab50133f4
commit 0668f5d75b

@ -23,6 +23,10 @@ yarn add @postlight/mercury-parser
import Mercury from '@postlight/mercury-parser';
Mercury.parse(url).then(result => console.log(result););
// NOTE: When used in the browser, you can omit the URL argument
// and simply run `Mercury.parse()` to parse the current page.
```
The result looks like this:

Loading…
Cancel
Save