18
18
npm install unist-util-remove-position
19
19
```
20
20
21
- ## Usage
21
+ ## Use
22
22
23
23
``` js
24
24
var remark = require (' remark' )
@@ -40,19 +40,13 @@ Yields:
40
40
{
41
41
type: ' paragraph' ,
42
42
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: ' .' }
56
50
]
57
51
}
58
52
]
@@ -63,7 +57,7 @@ Yields:
63
57
64
58
### ` removePosition(node[, force]) `
65
59
66
- Remove [ ` position ` ] [ position ] s from [ ` node ` ] [ node ] .
60
+ Remove [ ` position ` ] [ position ] fields from [ ` node ` ] [ node ] .
67
61
If ` force ` is given, uses ` delete ` , otherwise, sets ` position ` s to ` undefined ` .
68
62
69
63
###### Returns
@@ -76,8 +70,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
76
70
started.
77
71
See [ ` support.md ` ] [ support ] for ways to get help.
78
72
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
81
75
abide by its terms.
82
76
83
77
## License
@@ -108,7 +102,7 @@ abide by its terms.
108
102
109
103
[ collective ] : https://opencollective.com/unified
110
104
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
112
106
113
107
[ chat ] : https://spectrum.chat/unified/syntax-tree
114
108
0 commit comments