Skip to content

Commit

Permalink
remark-parse: fix docs referencing position
Browse files Browse the repository at this point in the history
Closes GH-382.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
mike-north authored and wooorm committed Jan 11, 2019
1 parent caaf374 commit aaf3eef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/remark-parse/readme.md
Expand Up @@ -395,7 +395,7 @@ var add = eat('foo')
add({type: 'text', value: 'foo'})
```

Add [positional information][location] to `node` and add it to `parent`.
Add [positional information][position] to `node` and add it to `parent`.

###### Parameters

Expand All @@ -409,16 +409,16 @@ The given `node`.

### `add.test()`

Get the [positional information][location] which would be patched on
Get the [positional information][position] which would be patched on
`node` by `add`.

###### Returns

[`Location`][location].
[`Position`][position].

### `add.reset(node[, parent])`

`add`, but resets the internal location. Useful for example in
`add`, but resets the internal position. Useful for example in
lists, where the same content is first eaten for a list, and later
for list items

Expand Down Expand Up @@ -501,7 +501,7 @@ Preferably, just use [this plugin](https://github.com/zestedesavoir/zmarkdown/tr

[node]: https://github.com/syntax-tree/unist#node

[location]: https://github.com/syntax-tree/unist#location
[position]: https://github.com/syntax-tree/unist#position

[parser]: https://github.com/unifiedjs/unified#processorparser

Expand Down

0 comments on commit aaf3eef

Please sign in to comment.