File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -4,25 +4,19 @@ Transform [MDAST][] to [HAST][].
44
55## Installation
66
7- [ npm] [ npm-install ] :
7+ [ npm] [ ] :
88
99``` bash
1010npm install mdast-util-to-hast
1111```
1212
1313## Usage
1414
15- Dependencies:
16-
1715``` javascript
1816var inspect = require (' unist-util-inspect' );
1917var remark = require (' remark' );
2018var toHAST = require (' mdast-util-to-hast' );
21- ```
2219
23- Transform:
24-
25- ``` javascript
2620var hast = toHAST (remark ().parse (' ## Hello **World**!' ));
2721console .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
You can’t perform that action at this time.
0 commit comments