1818npm install unist-util-remove-position
1919```
2020
21- ## Usage
21+ ## Use
2222
2323``` js
2424var remark = require (' remark' )
@@ -40,19 +40,13 @@ Yields:
4040 {
4141 type: ' paragraph' ,
4242 children: [
43- { type: ' text' , value: ' Some ' },
44- {
45- type: ' emphasis' ,
46- children: [ { type: ' text' , value: ' emphasis' } ]
47- },
48- { type: ' text' , value: ' , ' },
49- {
50- type: ' strong' ,
51- children: [ { type: ' text' , value: ' importance' } ]
52- },
53- { type: ' text' , value: ' , and ' },
54- { type: ' inlineCode' , value: ' code' },
55- { type: ' text' , value: ' .' }
43+ {type: ' text' , value: ' Some ' },
44+ {type: ' emphasis' , children: [{type: ' text' , value: ' emphasis' }]},
45+ {type: ' text' , value: ' , ' },
46+ {type: ' strong' , children: [{type: ' text' , value: ' importance' }]},
47+ {type: ' text' , value: ' , and ' },
48+ {type: ' inlineCode' , value: ' code' },
49+ {type: ' text' , value: ' .' }
5650 ]
5751 }
5852 ]
@@ -63,7 +57,7 @@ Yields:
6357
6458### ` removePosition(node[, force]) `
6559
66- Remove [ ` position ` ] [ position ] s from [ ` node ` ] [ node ] .
60+ Remove [ ` position ` ] [ position ] fields from [ ` node ` ] [ node ] .
6761If ` force ` is given, uses ` delete ` , otherwise, sets ` position ` s to ` undefined ` .
6862
6963###### Returns
@@ -76,8 +70,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
7670started.
7771See [ ` support.md ` ] [ support ] for ways to get help.
7872
79- This project has a [ Code of Conduct ] [ coc ] .
80- By interacting with this repository, organisation , or community you agree to
73+ This project has a [ code of conduct ] [ coc ] .
74+ By interacting with this repository, organization , or community you agree to
8175abide by its terms.
8276
8377## License
@@ -108,7 +102,7 @@ abide by its terms.
108102
109103[ collective ] : https://opencollective.com/unified
110104
111- [ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum -7b16ff.svg
105+ [ chat-badge ] : https://img.shields.io/badge/chat-spectrum -7b16ff.svg
112106
113107[ chat ] : https://spectrum.chat/unified/syntax-tree
114108
0 commit comments