88[ ![ Backers] [ backers-badge ]] [ collective ]
99[ ![ Chat] [ chat-badge ]] [ chat ]
1010
11- Transform [ MDAST ] [ ] to [ NLCST ] [ ] .
11+ [ ** mdast ** ] [ mdast ] utility to transform to [ ** nlcst ** ] [ nlcst ] .
1212
1313> ** Note** : You probably want to use [ ` remark-retext ` ] [ remark-retext ] .
1414
15- ## Installation
15+ ## Install
1616
1717[ npm] [ ] :
1818
19- ``` bash
19+ ``` sh
2020npm install mdast-util-to-nlcst
2121```
2222
2323## Usage
2424
25- ``` javascript
25+ ``` js
2626var toNLCST = require (' mdast-util-to-nlcst' )
2727var inspect = require (' unist-util-inspect' )
2828var English = require (' parse-english' )
@@ -54,50 +54,50 @@ RootNode[1] (1:1-1:17, 0-16)
5454
5555## API
5656
57- ### ` toNLCST(node , file, Parser[, options])`
57+ ### ` toNlcst(tree , file, Parser[, options])`
5858
59- Transform an [ MDAST ] [ ] syntax tree and corresponding [ virtual file] [ vfile ]
60- into an [ NLCST ] [ ] tree .
59+ Transform a [ tree ] [ ] in [ mdast ] [ ] , with a corresponding [ virtual file] [ vfile ] ,
60+ into [ nlcst ] [ ] .
6161
6262##### Parameters
6363
6464###### ` node `
6565
66- Syntax tree, with positional information ([ ` MDASTNode ` ] [ mdast ] ).
66+ Tree in [ mdast ] [ ] with positional information ([ ` MdastNode ` ] [ mdastnode ] ).
6767
6868###### ` file `
6969
7070Virtual file ([ ` VFile ` ] [ vfile ] ).
7171
7272###### ` parser `
7373
74- Constructor of an NLCST parser (` Function ` ). For example,
75- [ ` parse-english ` ] [ english ] , [ ` parse-dutch ` ] [ dutch ] , or
74+ [ nlcst ] [ ] parser (` Function ` ).
75+ For example, [ ` parse-english ` ] [ english ] , [ ` parse-dutch ` ] [ dutch ] , or
7676[ ` parse-latin ` ] [ latin ] .
7777
7878###### ` options.ignore `
7979
80- List of node [ types] [ type ] to ignore (` Array.<string> ` ).
80+ List of [ types] [ type ] to ignore (` Array.<string> ` ).
8181
8282` 'table' ` , ` 'tableRow' ` , and ` 'tableCell' ` are always ignored.
8383
8484###### ` options.source `
8585
86- List of node [ types] [ type ] to mark as [ source] [ ] (` Array.<string> ` ).
86+ List of [ types] [ type ] to mark as [ source] [ ] (` Array.<string> ` ).
8787
8888` 'inlineCode' ` is always marked as source.
8989
9090##### Returns
9191
92- [ ` NLCSTNode ` ] [ nlcst ] .
92+ [ ` NlcstNode ` ] [ nlcstnode ] .
9393
9494##### Examples
9595
9696###### ` ignore `
9797
9898Say we have the following file ` example.md ` :
9999
100- ``` markdown
100+ ``` md
101101A paragraph.
102102
103103> A paragraph in a block quote.
@@ -122,7 +122,7 @@ RootNode[2] (1:1-3:1, 0-14)
122122
123123Say we have the following file ` example.md ` :
124124
125- ``` markdown
125+ ``` md
126126A paragraph.
127127
128128> A paragraph in a block quote.
@@ -151,19 +151,21 @@ RootNode[3] (1:1-3:32, 0-45)
151151* [ ` remark-retext ` ] [ remark-retext ]
152152 — ** retext** support for ** remark**
153153* [ ` hast-util-to-nlcst ` ] ( https://github.com/syntax-tree/hast-util-to-nlcst )
154- — Transform HAST to NLCST
154+ — Transform [ hast ] [ ] to [ nlcst ] [ ]
155155* [ ` hast-util-to-mdast ` ] ( https://github.com/syntax-tree/hast-util-to-mdast )
156- — Transform HAST to MDAST
156+ — Transform [ hast ] [ ] to [ mdast ] [ ]
157157* [ ` mdast-util-to-hast ` ] ( https://github.com/syntax-tree/mdast-util-to-hast )
158- — Transform MDAST to HAST
158+ — Transform [ mdast ] [ ] to [ hast ] [ ]
159159
160160## Contribute
161161
162- See [ ` contributing.md ` in ` syntax-tree/mdast ` ] [ contributing ] for ways to get
162+ See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
163163started.
164+ See [ ` support.md ` ] [ support ] for ways to get help.
164165
165- This organisation has a [ Code of Conduct] [ coc ] . By interacting with this
166- repository, organisation, or community you agree to abide by its terms.
166+ This project has a [ Code of Conduct] [ coc ] .
167+ By interacting with this repository, organisation, or community you agree to
168+ abide by its terms.
167169
168170## License
169171
@@ -203,10 +205,18 @@ repository, organisation, or community you agree to abide by its terms.
203205
204206[ author ] : https://wooorm.com
205207
208+ [ contributing ] : https://github.com/syntax-tree/.github/blob/master/contributing.md
209+
210+ [ support ] : https://github.com/syntax-tree/.github/blob/master/support.md
211+
212+ [ coc ] : https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
213+
206214[ mdast ] : https://github.com/syntax-tree/mdast
207215
208216[ nlcst ] : https://github.com/syntax-tree/nlcst
209217
218+ [ hast ] : https://github.com/syntax-tree/hast
219+
210220[ remark-retext ] : https://github.com/remarkjs/remark-retext
211221
212222[ vfile ] : https://github.com/vfile/vfile
@@ -221,6 +231,8 @@ repository, organisation, or community you agree to abide by its terms.
221231
222232[ source ] : https://github.com/syntax-tree/nlcst#source
223233
224- [ contributing ] : https://github.com/syntax-tree/mdast/blob/master/contributing.md
234+ [ tree ] : https://github.com/syntax-tree/unist#tree
235+
236+ [ mdastnode ] : https://github.com/syntax-tree/mdast#nodes
225237
226- [ coc ] : https://github.com/syntax-tree/mdast/blob/master/code-of-conduct.md
238+ [ nlcstnode ] : https://github.com/syntax-tree/nlcst#nodes
0 commit comments