Socket
Socket
Sign inDemoInstall

remark-mdx

Package Overview
Dependencies
77
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.3.0

7

index.d.ts

@@ -1,6 +0,9 @@

export default function remarkMdx(this: import("unified").Processor<void, import("mdast").Root, void, void>, ...settings: [(Options | undefined)?] | void[]): void | import("unified").Transformer<import("mdast").Root, import("mdast").Root>;
export default function remarkMdx(this: import("unified").Processor<void, import("mdast").Root, void, void>, ...settings: [Options | null | undefined] | []): void | import("unified").Transformer<import("mdast").Root, import("mdast").Root>;
export type Root = import('mdast').Root;
export type MicromarkOptions = import('micromark-extension-mdxjs').Options;
export type ToMarkdownOptions = import('mdast-util-mdx').ToMarkdownOptions;
export type DoNotTouchAsThisIncludesMdxInTree = typeof import("mdast-util-mdx");
/**
* Configuration.
*/
export type Options = MicromarkOptions & ToMarkdownOptions;
export type DoNotTouchAsThisImportItIncludesMdxInTree = typeof import("mdast-util-mdx");

@@ -5,5 +5,8 @@ /**

* @typedef {import('mdast-util-mdx').ToMarkdownOptions} ToMarkdownOptions
* @typedef {import('mdast-util-mdx')} DoNotTouchAsThisIncludesMdxInTree
*/
/**
* @typedef {MicromarkOptions & ToMarkdownOptions} Options
*
* @typedef {import('mdast-util-mdx')} DoNotTouchAsThisImportItIncludesMdxInTree
* Configuration.
*/

@@ -19,5 +22,5 @@

* @this {import('unified').Processor}
* @type {import('unified').Plugin<[Options?]|Array<void>, Root>}
* @type {import('unified').Plugin<[Options | null | undefined] | [], Root>}
*/
export default function remarkMdx(options = {}) {
export default function remarkMdx(options) {
const data = this.data()

@@ -24,0 +27,0 @@

{
"name": "remark-mdx",
"version": "2.2.1",
"version": "2.3.0",
"description": "remark plugin to support MDX syntax",

@@ -56,3 +56,3 @@ "license": "MIT",

"prepack": "npm run build",
"build": "rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage",
"build": "tsc --build --clean && tsc --build && type-coverage",
"test-api": "uvu test \"\\.jsx?$\"",

@@ -59,0 +59,0 @@ "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc