micromark-extension-mdx-expression
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "micromark-extension-mdx-expression", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "micromark extension to support MDX or MDX JS expressions", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"micromark": "~2.10.0", | ||
"micromark": "~2.11.0", | ||
"vfile-message": "^2.0.0" | ||
@@ -46,3 +46,3 @@ }, | ||
"tape": "^5.0.0", | ||
"xo": "^0.35.0" | ||
"xo": "^0.36.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
@@ -11,3 +11,3 @@ # micromark-extension-mdx-expression | ||
**[micromark][]** extension to support [MDX][] or MDX JS expressions. | ||
**[micromark][]** extension to support MDX (or MDX.js) expressions. | ||
@@ -17,5 +17,6 @@ This package provides the low-level modules for integrating with the micromark | ||
You should use this with `mdast-util-mdx-expression` (**[mdast][]**). | ||
You should use this with [`mdast-util-mdx-expression`][util] (**[mdast][]**). | ||
Alternatively, use `micromark-extension-mdx` with `mdast-util-mdx` or | ||
`micromark-extension-mdxjs` with `mdast-util-mdxjs` to support all of MDX (JS). | ||
`micromark-extension-mdxjs` with `mdast-util-mdxjs` to support all of MDX (or | ||
MDX.js). | ||
Or, use it through `remark-mdx` or `remark-mdxjs` (**[remark][]**). | ||
@@ -33,3 +34,3 @@ | ||
See `mdast-util-mdx-expression` for an example. | ||
See [`mdast-util-mdx-expression`][util] for an example. | ||
@@ -40,3 +41,3 @@ ## API | ||
Support [MDX][] (JS) expressions. | ||
Support [MDX][] (or MDX.js) expressions. | ||
@@ -61,6 +62,5 @@ The export of `syntax` is a function that can be called with options and returns | ||
Whether to add an `estree` field to the `mdxFlowExpression` and | ||
`mdxTextExpression` tokens with the results from acorn (`boolean`, default: | ||
`false`). | ||
Note that expressions can be empty or be just comments, in which cases `estree` | ||
Whether to add an `estree` field to `mdxFlowExpression` and `mdxTextExpression` | ||
tokens with the results from acorn (`boolean`, default: `false`). | ||
Note that expressions can be empty or be just comments, in which case `estree` | ||
will be undefined. | ||
@@ -70,3 +70,3 @@ | ||
This extensions support both vanilla MDX and MDX JS. | ||
This extensions support both MDX and MDX.js. | ||
The first is agnostic to the programming language (it could contain Rust or | ||
@@ -179,24 +179,18 @@ so), the last is specific to JavaScript. | ||
* [`remarkjs/remark`][remark] | ||
— markdown processor powered by plugins | ||
* [`micromark/micromark`][micromark] | ||
— the smallest commonmark-compliant markdown parser that exists | ||
* `micromark/micromark-extension-mdx` | ||
— micromark extension to support all of MDX | ||
— micromark extension to support MDX | ||
* `micromark/micromark-extension-mdxjs` | ||
— micromark extension to support all of MDX JS | ||
* `micromark/micromark-extension-mdx-jsx` | ||
— micromark extension to support the JSX of MDX | ||
— micromark extension to support MDX.js | ||
* [`micromark/micromark-extension-mdx-jsx`][mdx-jsx] | ||
— micromark extension to support MDX (or MDX.js) JSX | ||
* [`micromark/micromark-extension-mdxjs-esm`][mdxjs-esm] | ||
— micromark extension to support the import/exports of MDX JS | ||
— micromark extension to support MDX.js import/exports | ||
* `micromark/micromark-extension-mdx-md` | ||
— micromark extension to support the changes to markdown of MDX | ||
— micromark extension to support misc MDX changes | ||
* `syntax-tree/mdast-util-mdx` | ||
— mdast utility to support all of MDX | ||
— mdast utility to support MDX | ||
* `syntax-tree/mdast-util-mdxjs` | ||
— mdast utility to support all of MDX JS | ||
* [`syntax-tree/mdast-util-from-markdown`][from-markdown] | ||
— mdast parser using `micromark` to create mdast from markdown | ||
* [`syntax-tree/mdast-util-to-markdown`][to-markdown] | ||
— mdast serializer to create markdown from mdast | ||
— mdast utility to support MDX.js | ||
@@ -243,3 +237,3 @@ ## Contribute | ||
[chat]: https://github.com/micromark/unist/discussions | ||
[chat]: https://github.com/micromark/micromark/discussions | ||
@@ -260,6 +254,2 @@ [npm]: https://docs.npmjs.com/cli/install | ||
[from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown | ||
[to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown | ||
[remark]: https://github.com/remarkjs/remark | ||
@@ -274,1 +264,5 @@ | ||
[mdxjs-esm]: https://github.com/micromark/micromark-extension-mdxjs-esm | ||
[mdx-jsx]: https://github.com/micromark/micromark-extension-mdx-jsx | ||
[util]: https://github.com/syntax-tree/mdast-util-mdx-expression |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18019
259
+ Addedmicromark@2.11.4(transitive)
- Removedmicromark@2.10.1(transitive)
Updatedmicromark@~2.11.0