Skip to content

Commit

Permalink
Add links to README and fix up markdown error
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbundy committed Apr 12, 2014
1 parent 3ab3ff2 commit 0db445c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm install hacker-news-api

## Examples

Some methods only require a callback.
[Some methods](#Callback-only) only require a callback.

```js
var hn = require('hacker-news-api');
Expand All @@ -22,7 +22,7 @@ hn.getLastPolls(function (error, data) {
});
```

Some methods require a string and a callback.
[Some methods](#String-and-callback) require a string and a callback.

```js
var hn = require('hacker-news-api');
Expand All @@ -33,7 +33,7 @@ hn.getUserStories('pg', function (error, data) {
});
```

The `api.search` method requires an object and a callback.
[Some methods](#Object-and-callback) requires an object and a callback.
```js
var hn = require('hacker-news-api');

Expand All @@ -49,7 +49,7 @@ hn.search({
## Methods


### Callback-only
### Callback only

* `getComments(cb)`
* `getLastComments(cb)`;
Expand All @@ -72,7 +72,7 @@ hn.search({
* `getLastUserStories(username, cb)`
* `searchComments(query, cb)`
* `searchLastComments(query, cb)`
* `searchPosts(query, cb)
* `searchPosts(query, cb)`
* `searchLastPosts(query, cb)`
* `searchStories(query, cb)`
* `searchLastStories(query, cb)`
Expand Down

0 comments on commit 0db445c

Please sign in to comment.