@@ -42,7 +42,7 @@ to get the rank of an element.
42
42
## Install
43
43
44
44
This package is [ ESM only] [ esm ] .
45
- In Node.js (version 12.20+, 14.14+, 16.0+, or 18 .0+), install with [ npm] [ ] :
45
+ In Node.js (version 14.14+ and 16 .0+), install with [ npm] [ ] :
46
46
47
47
``` sh
48
48
npm install hast-util-shift-heading
@@ -122,7 +122,7 @@ Yields:
122
122
123
123
## API
124
124
125
- This package exports the identifier ` shiftHeading ` .
125
+ This package exports the identifier [ ` shiftHeading ` ] [ shiftheading ] .
126
126
There is no default export.
127
127
128
128
### ` shiftHeading(tree, shift) `
@@ -135,12 +135,12 @@ Caps the rank so that shifting would not create invalid headings (so no `h0` or
135
135
136
136
###### Parameters
137
137
138
- * ` tree ` ([ ` Node ` ] [ node ] ) — tree to walk
138
+ * ` tree ` ([ ` Node ` ] [ node ] ) — tree to change
139
139
* ` shift ` (` number ` ) — non-null finite integer to use to shift ranks
140
140
141
141
###### Returns
142
142
143
- The given, mutated , tree ([ ` Node ` ] [ node ] ).
143
+ Given, modified , tree ([ ` Node ` ] [ node ] ).
144
144
145
145
###### Throws
146
146
@@ -155,7 +155,7 @@ It exports no additional types.
155
155
156
156
Projects maintained by the unified collective are compatible with all maintained
157
157
versions of Node.js.
158
- As of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18 .0+.
158
+ As of now, that is Node.js 14.14+ and 16 .0+.
159
159
Our projects sometimes work with older versions, but this is not guaranteed.
160
160
161
161
## Security
@@ -240,3 +240,5 @@ abide by its terms.
240
240
[ hast-util-heading-rank ] : https://github.com/syntax-tree/hast-util-heading-rank
241
241
242
242
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
243
+
244
+ [ shiftheading ] : #shiftheadingtree-shift
0 commit comments