Socket
Socket
Sign inDemoInstall

micromark-extension-mdxjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-extension-mdxjs - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

15

index.d.ts
/**
* @param {Options} [options]
* Create an extension for `micromark` to enable MDX syntax.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {Extension}
* Extension for `micromark` that can be passed in `extensions` to enable MDX
* syntax.
*/
export function mdxjs(
options?:
| import('./node_modules/micromark-extension-mdx-expression/dev/lib/syntax.js').Options
| undefined
): Extension
export function mdxjs(options?: Options | null | undefined): Extension
export type Options = import('micromark-extension-mdx-expression').Options
export type Extension = import('micromark-util-types').Extension
export type Options = import('micromark-extension-mdx-expression').Options

@@ -27,3 +27,3 @@ /**

acorn: Parser.extend(acornJsx()),
acornOptions: {ecmaVersion: 2020, sourceType: 'module'},
acornOptions: {ecmaVersion: 2023, sourceType: 'module'},
addResult: true

@@ -38,4 +38,4 @@ },

mdxJsx(settings),
mdxMd
mdxMd()
])
}
{
"name": "micromark-extension-mdxjs",
"version": "1.0.1",
"version": "2.0.0",
"description": "micromark extension to support MDX.js",

@@ -29,4 +29,3 @@ "license": "MIT",

"type": "module",
"main": "index.js",
"types": "index.d.ts",
"exports": "./index.js",
"files": [

@@ -39,13 +38,13 @@ "index.d.ts",

"acorn-jsx": "^5.0.0",
"micromark-extension-mdx-expression": "^1.0.0",
"micromark-extension-mdx-jsx": "^1.0.0",
"micromark-extension-mdx-md": "^1.0.0",
"micromark-extension-mdxjs-esm": "^1.0.0",
"micromark-util-combine-extensions": "^1.0.0",
"micromark-util-types": "^1.0.0"
"micromark-extension-mdx-expression": "^2.0.0",
"micromark-extension-mdx-jsx": "^2.0.0",
"micromark-extension-mdx-md": "^2.0.0",
"micromark-extension-mdxjs-esm": "^2.0.0",
"micromark-util-combine-extensions": "^2.0.0",
"micromark-util-types": "^2.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^7.0.0",
"micromark": "^3.0.0",
"c8": "^8.0.0",
"micromark": "^4.0.0",
"prettier": "^2.0.0",

@@ -69,15 +68,12 @@ "remark-cli": "^11.0.0",

"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
"xo": {
"prettier": true
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
"remark-preset-wooorm"
]

@@ -88,5 +84,8 @@ },

"detail": true,
"strict": true,
"ignoreCatch": true
"ignoreCatch": true,
"strict": true
},
"xo": {
"prettier": true
}
}

@@ -80,3 +80,3 @@ # micromark-extension-mdxjs

```js
import {mdxjs} from 'https://esm.sh/micromark-extension-mdxjs@1'
import {mdxjs} from 'https://esm.sh/micromark-extension-mdxjs@2'
```

@@ -88,3 +88,3 @@

<script type="module">
import {mdxjs} from 'https://esm.sh/micromark-extension-mdxjs@1?bundle'
import {mdxjs} from 'https://esm.sh/micromark-extension-mdxjs@2?bundle'
</script>

@@ -118,3 +118,3 @@ ```

This package exports the identifiers [`mdxjs`][api-mdxjs].
This package exports the identifier [`mdxjs`][api-mdxjs].
There is no default export.

@@ -186,9 +186,12 @@

Projects maintained by the unified collective are compatible with all maintained
Projects maintained by the unified collective are compatible with maintained
versions of Node.js.
As of now, that is Node.js 16+.
Our projects sometimes work with older versions, but this is not guaranteed.
These extensions work with `micromark` version 3+.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
`micromark-extension-mdxjs@^2`, compatible with Node.js 16.
This package works with `micromark` version `3` and later.
## Security

@@ -235,5 +238,5 @@

[size-badge]: https://img.shields.io/bundlephobia/minzip/micromark-extension-mdxjs.svg
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-extension-mdxjs
[size]: https://bundlephobia.com/result?p=micromark-extension-mdxjs
[size]: https://bundlejs.com/?q=micromark-extension-mdxjs

@@ -240,0 +243,0 @@ [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg

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