Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

micromark-extension-mdx-expression

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-extension-mdx-expression - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

14

lib/factory-expression.js

@@ -81,2 +81,3 @@ 'use strict'

// eslint-disable-next-line complexity
function atClosingBrace(code) {

@@ -168,2 +169,15 @@ var result

if (spread) {
if (
!result ||
!result.right ||
!result.right.properties ||
!result.right.properties[0]
) {
throw new VMessage(
'Unexpected empty spread expression: expected `...`',
{start: position, end: self.now()},
'micromark-extension-mdx-expression:non-spread'
)
}
result = result.right.properties[0]

@@ -170,0 +184,0 @@

2

package.json
{
"name": "micromark-extension-mdx-expression",
"version": "0.1.2",
"version": "0.1.3",
"description": "micromark extension to support MDX or MDX JS expressions",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -17,5 +17,5 @@ # micromark-extension-mdx-expression

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 (or
MDX.js).
Alternatively, use either [`micromark-extension-mdx`][mdx] or
[`micromark-extension-mdxjs`][mdxjs] with [`mdast-util-mdx`][mdast-util-mdx] to
support all of MDX (or MDX.js).
Or, use it through `remark-mdx` or `remark-mdxjs` (**[remark][]**).

@@ -39,3 +39,3 @@

Support [MDX][] (or MDX.js) expressions.
Support [MDX][mdx-js] (or MDX.js) expressions.

@@ -177,16 +177,14 @@ The export of `syntax` is a function that can be called with options and returns

— the smallest commonmark-compliant markdown parser that exists
* `micromark/micromark-extension-mdx`
* [`micromark/micromark-extension-mdx`][mdx]
— micromark extension to support MDX
* `micromark/micromark-extension-mdxjs`
* [`micromark/micromark-extension-mdxjs`][mdxjs]
— 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-mdx-md`][mdx-md]
— micromark extension to support misc MDX changes
* [`micromark/micromark-extension-mdxjs-esm`][mdxjs-esm]
— micromark extension to support MDX.js import/exports
* `micromark/micromark-extension-mdx-md`
— micromark extension to support misc MDX changes
* `syntax-tree/mdast-util-mdx`
— mdast utility to support MDX
* `syntax-tree/mdast-util-mdxjs`
— mdast utility to support MDX.js
* [`syntax-tree/mdast-util-mdx`][mdast-util-mdx]
— mdast utility to support MDX (or MDX.js)

@@ -253,10 +251,18 @@ ## Contribute

[mdx]: https://github.com/mdx-js/mdx
[mdx-js]: https://github.com/mdx-js/mdx
[acorn]: https://github.com/acornjs/acorn
[mdx-jsx]: https://github.com/micromark/micromark-extension-mdx-jsx
[mdx-md]: https://github.com/micromark/micromark-extension-mdx-md
[mdxjs-esm]: https://github.com/micromark/micromark-extension-mdxjs-esm
[mdx-jsx]: https://github.com/micromark/micromark-extension-mdx-jsx
[mdx]: https://github.com/micromark/micromark-extension-mdx
[mdxjs]: https://github.com/micromark/micromark-extension-mdxjs
[util]: https://github.com/syntax-tree/mdast-util-mdx-expression
[mdast-util-mdx]: https://github.com/syntax-tree/mdast-util-mdx
[acorn]: https://github.com/acornjs/acorn
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc