micromark-extension-mdxjs
Advanced tools
Comparing version 1.0.1 to 2.0.0
/** | ||
* @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 |
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
13986
48
295
+ Added@types/unist@3.0.3(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addedestree-util-visit@2.0.0(transitive)
+ Addedmicromark-core-commonmark@2.0.1(transitive)
+ Addedmicromark-extension-mdx-expression@2.0.0(transitive)
+ Addedmicromark-extension-mdx-jsx@2.0.0(transitive)
+ Addedmicromark-extension-mdx-md@2.0.0(transitive)
+ Addedmicromark-extension-mdxjs-esm@2.0.1(transitive)
+ Addedmicromark-factory-destination@2.0.0(transitive)
+ Addedmicromark-factory-label@2.0.0(transitive)
+ Addedmicromark-factory-mdx-expression@2.0.2(transitive)
+ Addedmicromark-factory-space@2.0.0(transitive)
+ Addedmicromark-factory-title@2.0.0(transitive)
+ Addedmicromark-factory-whitespace@2.0.0(transitive)
+ Addedmicromark-util-character@2.1.0(transitive)
+ Addedmicromark-util-chunked@2.0.0(transitive)
+ Addedmicromark-util-classify-character@2.0.0(transitive)
+ Addedmicromark-util-combine-extensions@2.0.0(transitive)
+ Addedmicromark-util-events-to-acorn@2.0.2(transitive)
+ Addedmicromark-util-html-tag-name@2.0.0(transitive)
+ Addedmicromark-util-normalize-identifier@2.0.0(transitive)
+ Addedmicromark-util-resolve-all@2.0.0(transitive)
+ Addedmicromark-util-subtokenize@2.0.1(transitive)
+ Addedmicromark-util-symbol@2.0.0(transitive)
+ Addedmicromark-util-types@2.0.0(transitive)
+ Addedunist-util-position-from-estree@2.0.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedvfile-message@4.0.2(transitive)
- Removed@types/unist@2.0.11(transitive)
- Removeddiff@5.2.0(transitive)
- Removedestree-util-visit@1.2.1(transitive)
- Removedkleur@4.1.5(transitive)
- Removedmicromark-core-commonmark@1.1.0(transitive)
- Removedmicromark-extension-mdx-expression@1.0.8(transitive)
- Removedmicromark-extension-mdx-jsx@1.0.5(transitive)
- Removedmicromark-extension-mdx-md@1.0.1(transitive)
- Removedmicromark-extension-mdxjs-esm@1.0.5(transitive)
- Removedmicromark-factory-destination@1.1.0(transitive)
- Removedmicromark-factory-label@1.1.0(transitive)
- Removedmicromark-factory-mdx-expression@1.0.9(transitive)
- Removedmicromark-factory-space@1.1.0(transitive)
- Removedmicromark-factory-title@1.1.0(transitive)
- Removedmicromark-factory-whitespace@1.1.0(transitive)
- Removedmicromark-util-character@1.2.0(transitive)
- Removedmicromark-util-chunked@1.1.0(transitive)
- Removedmicromark-util-classify-character@1.1.0(transitive)
- Removedmicromark-util-combine-extensions@1.1.0(transitive)
- Removedmicromark-util-events-to-acorn@1.2.3(transitive)
- Removedmicromark-util-html-tag-name@1.2.0(transitive)
- Removedmicromark-util-normalize-identifier@1.1.0(transitive)
- Removedmicromark-util-resolve-all@1.1.0(transitive)
- Removedmicromark-util-subtokenize@1.1.0(transitive)
- Removedmicromark-util-symbol@1.1.0(transitive)
- Removedmicromark-util-types@1.1.0(transitive)
- Removedmri@1.2.0(transitive)
- Removedsade@1.8.1(transitive)
- Removedunist-util-position-from-estree@1.1.2(transitive)
- Removedunist-util-stringify-position@3.0.3(transitive)
- Removeduvu@0.5.6(transitive)
- Removedvfile-message@3.1.4(transitive)
Updatedmicromark-util-types@^2.0.0