Skip to content

Commit

Permalink
Update readme with anchor links for code gist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasanth Gopal committed Jul 4, 2017
1 parent d1bc1d1 commit 2d15ce4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Popularly, many websites mark up their webpages with Schema.org vocabularies for
## Installation
`npm install web-auto-extractor`

## Usage
## [Usage](#usage)

```js
// IF CommonJS
Expand All @@ -31,6 +31,7 @@ var parsed = WAE().parse(sampleHTML)

Let's use the following text as the `sampleHTML` in our example. It uses Schema.org vocabularies to structure a Product information and is encoded in `microdata` format.

#### [Input](#input)
```html
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="brand">ACME</span>
Expand Down Expand Up @@ -62,7 +63,7 @@ Let's use the following text as the `sampleHTML` in our example. It uses Schema.
</div>
```

#### Result
#### [Output](#output)

Our `parsed` object should look like -

Expand Down

0 comments on commit 2d15ce4

Please sign in to comment.