File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
# mdast-util-to-nlcst [ ![ Build Status] [ travis-badge ]] [ travis ] [ ![ Coverage Status] [ codecov-badge ]] [ codecov ]
2
2
3
- <!-- lint disable heading-increment list-item-spacing-->
4
-
5
3
Transform [ MDAST] [ ] to [ NLCST] [ ] .
6
4
7
5
> ** Note** You probably want to use [ remark-retext] [ ] .
8
6
9
7
## Installation
10
8
11
- [ npm] [ npm-install ] :
9
+ [ npm] [ ] :
12
10
13
11
``` bash
14
12
npm install mdast-util-to-nlcst
@@ -24,22 +22,16 @@ var inspect = require('unist-util-inspect');
24
22
var English = require (' parse-english' );
25
23
var remark = require (' remark' );
26
24
var vfile = require (' vfile' );
27
- ```
28
25
29
- Process:
30
-
31
- ``` javascript
32
26
var file = vfile (' Some *foo*sball.' );
33
27
var tree = remark ().parse (file);
34
- ```
35
-
36
- Stringify:
37
28
38
- ``` javascript
39
29
var nlcst = toNLCST (tree, file, English);
30
+
31
+ console .log (inspect (nlcst));
40
32
```
41
33
42
- Which, when inspecting, yields :
34
+ Yields :
43
35
44
36
``` txt
45
37
RootNode[1] (1:1-1:17, 0-16)
@@ -89,7 +81,7 @@ into an [NLCST][nlcst] tree.
89
81
90
82
[ codecov ] : https://codecov.io/github/wooorm/mdast-util-to-nlcst
91
83
92
- [ npm-install ] : https://docs.npmjs.com/cli/install
84
+ [ npm ] : https://docs.npmjs.com/cli/install
93
85
94
86
[ license ] : LICENSE
95
87
You can’t perform that action at this time.
0 commit comments