@@ -64,7 +64,7 @@ internals away.
64
64
## Install
65
65
66
66
This package is [ ESM only] [ esm ] .
67
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
67
+ In Node.js (version 16 +), install with [ npm] [ ] :
68
68
69
69
``` sh
70
70
npm install mdast-util-mdx
@@ -88,7 +88,7 @@ In browsers with [`esm.sh`][esmsh]:
88
88
89
89
Say our document ` example.mdx ` contains:
90
90
91
- ``` markdown
91
+ ``` mdx
92
92
import Box from " place"
93
93
94
94
Here’s an expression:
@@ -249,7 +249,7 @@ console.log(out)
249
249
}
250
250
```
251
251
252
- ``` markdown
252
+ ``` mdx
253
253
import Box from " place"
254
254
255
255
Here’s an expression:
@@ -376,10 +376,13 @@ visit(tree, function (node) {
376
376
377
377
## Compatibility
378
378
379
- Projects maintained by the unified collective are compatible with all maintained
379
+ Projects maintained by the unified collective are compatible with maintained
380
380
versions of Node.js.
381
- As of now, that is Node.js 14.14+ and 16.0+.
382
- Our projects sometimes work with older versions, but this is not guaranteed.
381
+
382
+ When we cut a new major release, we drop support for unmaintained versions of
383
+ Node.
384
+ This means we try to keep the current release line, ` mdast-util-mdx@^2 ` ,
385
+ compatible with Node.js 12.
383
386
384
387
This utility works with ` mdast-util-from-markdown ` version 1+ and
385
388
` mdast-util-to-markdown ` version 1+.
@@ -421,9 +424,9 @@ abide by its terms.
421
424
422
425
[ downloads ] : https://www.npmjs.com/package/mdast-util-mdx
423
426
424
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ mdast-util-mdx.svg
427
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-util-mdx
425
428
426
- [ size ] : https://bundlephobia .com/result?p =mdast-util-mdx
429
+ [ size ] : https://bundlejs .com/?q =mdast-util-mdx
427
430
428
431
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
429
432
0 commit comments