@@ -68,7 +68,7 @@ Notable examples that deeply integrate with this package are
68
68
## Install
69
69
70
70
This package is [ ESM only] [ esm ] .
71
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
71
+ In Node.js (version 16 +), install with [ npm] [ ] :
72
72
73
73
``` sh
74
74
npm install mdast-util-from-markdown
@@ -129,7 +129,7 @@ console.log(tree)
129
129
130
130
## API
131
131
132
- This package exports the identifier [ ` fromMarkdown ` ] [ api-frommarkdown ] .
132
+ This package exports the identifier [ ` fromMarkdown ` ] [ api-from-markdown ] .
133
133
There is no default export.
134
134
135
135
The export map supports the [ ` development ` condition] [ development ] .
@@ -170,9 +170,9 @@ mdast compiler context (TypeScript type).
170
170
* ` tokenStack ` (` Array<[Token, OnEnterError | undefined]> ` )
171
171
— stack of tokens
172
172
* ` getData ` (` (key: string) => unknown ` )
173
- — get data from the key/value store (see [ ` CompileData ` ] [ api-compiledata ] )
173
+ — get data from the key/value store (see [ ` CompileData ` ] [ api-compile-data ] )
174
174
* ` setData ` (` (key: string, value?: unknown) => undefined ` )
175
- — set data into the key/value store (see [ ` CompileData ` ] [ api-compiledata ] )
175
+ — set data into the key/value store (see [ ` CompileData ` ] [ api-compile-data ] )
176
176
* ` buffer ` (` () => undefined ` )
177
177
— capture some of the output data
178
178
* ` resume ` (` () => string ` )
@@ -244,7 +244,7 @@ Handle a token (TypeScript type).
244
244
245
245
###### Parameters
246
246
247
- * ` this ` ([ ` CompileContext ` ][api-compilecontext ])
247
+ * ` this ` ([ ` CompileContext ` ][api-compile-context ])
248
248
— context
249
249
* ` token ` ([ ` Token ` ][api-token])
250
250
— current token
@@ -260,7 +260,7 @@ Handle the case where the `right` token is open, but it is closed (by the
260
260
261
261
###### Parameters
262
262
263
- * ` this ` ([ ` CompileContext ` ][api-compilecontext ])
263
+ * ` this ` ([ ` CompileContext ` ][api-compile-context ])
264
264
— context
265
265
* ` left ` ([ ` Token ` ][api-token] or ` undefined ` )
266
266
— left token
@@ -278,7 +278,7 @@ exiting the `left` token (TypeScript type).
278
278
279
279
###### Parameters
280
280
281
- * ` this ` ([ ` CompileContext ` ][api-compilecontext ])
281
+ * ` this ` ([ ` CompileContext ` ][api-compile-context ])
282
282
— context
283
283
* ` left ` ([ ` Token ` ][api-token])
284
284
— left token
@@ -385,24 +385,27 @@ The syntax tree is [mdast][].
385
385
## Types
386
386
387
387
This package is fully typed with [TypeScript][].
388
- It exports the additional types [ ` CompileContext ` ][api-compilecontext ],
389
- [ ` CompileData ` ][api-compiledata ],
388
+ It exports the additional types [ ` CompileContext ` ][api-compile-context ],
389
+ [ ` CompileData ` ][api-compile-data ],
390
390
[ ` Encoding ` ][api-encoding],
391
391
[ ` Extension ` ][api-extension],
392
392
[ ` Handle ` ][api-handle],
393
- [ ` OnEnterError ` ][api-onentererror ],
394
- [ ` OnExitError ` ][api-onexiterror ],
393
+ [ ` OnEnterError ` ][api-on-enter-error ],
394
+ [ ` OnExitError ` ][api-on-exit-error ],
395
395
[ ` Options ` ][api-options],
396
396
[ ` Token ` ][api-token],
397
397
[ ` Transform ` ][api-transform], and
398
398
[ ` Value ` ][api-value].
399
399
400
400
## Compatibility
401
401
402
- Projects maintained by the unified collective are compatible with all maintained
402
+ Projects maintained by the unified collective are compatible with maintained
403
403
versions of Node.js.
404
- As of now, that is Node.js 14.14+ and 16.0+.
405
- Our projects sometimes work with older versions, but this is not guaranteed.
404
+
405
+ When we cut a new major release, we drop support for unmaintained versions of
406
+ Node.
407
+ This means we try to keep the current release line,
408
+ ` mdast -util -from -markdown @^1 ` , compatible with Node.js 12.
406
409
407
410
## Security
408
411
@@ -449,9 +452,9 @@ abide by its terms.
449
452
450
453
[downloads]: https://www.npmjs.com/package/mdast-util-from-markdown
451
454
452
- [size-badge]: https://img.shields.io/bundlephobia/minzip/ mdast-util-from-markdown.svg
455
+ [size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-util-from-markdown
453
456
454
- [size]: https://bundlephobia .com/result?p =mdast-util-from-markdown
457
+ [size]: https://bundlejs .com/?q =mdast-util-from-markdown
455
458
456
459
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
457
460
@@ -519,21 +522,21 @@ abide by its terms.
519
522
520
523
[development]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions
521
524
522
- [api-frommarkdown ]: #frommarkdownvalue-encoding-options
525
+ [api-from-markdown ]: #frommarkdownvalue-encoding-options
523
526
524
- [api-compilecontext ]: #compilecontext
527
+ [api-compile-context ]: #compilecontext
525
528
526
- [api-compiledata ]: #compiledata
529
+ [api-compile-data ]: #compiledata
527
530
528
531
[api-encoding]: #encoding
529
532
530
533
[api-extension]: #extension
531
534
532
535
[api-handle]: #handle
533
536
534
- [api-onentererror ]: #onentererror
537
+ [api-on-enter-error ]: #onentererror
535
538
536
- [api-onexiterror ]: #onexiterror
539
+ [api-on-exit-error ]: #onexiterror
537
540
538
541
[api-options]: #options
539
542
0 commit comments