Skip to content

Commit a8910c9

Browse files
committed
Refactor docs
1 parent 157097d commit a8910c9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

readme.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,19 @@ Transform [MDAST][] to [HAST][].
44

55
## Installation
66

7-
[npm][npm-install]:
7+
[npm][]:
88

99
```bash
1010
npm install mdast-util-to-hast
1111
```
1212

1313
## Usage
1414

15-
Dependencies:
16-
1715
```javascript
1816
var inspect = require('unist-util-inspect');
1917
var remark = require('remark');
2018
var toHAST = require('mdast-util-to-hast');
21-
```
2219

23-
Transform:
24-
25-
```javascript
2620
var hast = toHAST(remark().parse('## Hello **World**!'));
2721
console.log(inspect(hast));
2822
```
@@ -84,7 +78,7 @@ default: `false`). Only do this when compiling later with
8478

8579
[codecov]: https://codecov.io/github/wooorm/mdast-util-to-hast
8680

87-
[npm-install]: https://docs.npmjs.com/cli/install
81+
[npm]: https://docs.npmjs.com/cli/install
8882

8983
[license]: LICENSE
9084

0 commit comments

Comments
 (0)