From 52c774b9aa1305067aa1f5baba3ac56dd7956399 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 12 Jul 2023 09:38:37 +0200 Subject: [PATCH] Update `@types/mdast`, mdast utilities --- index.js | 10 +++++++--- package.json | 16 ++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 410c701..c85923e 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,11 @@ import {mdxjsEsmFromMarkdown, mdxjsEsmToMarkdown} from 'mdast-util-mdxjs-esm' * nodes will have `data.estree` fields set to ESTree `Program` node. */ export function mdxFromMarkdown() { - return [mdxExpressionFromMarkdown, mdxJsxFromMarkdown(), mdxjsEsmFromMarkdown] + return [ + mdxExpressionFromMarkdown(), + mdxJsxFromMarkdown(), + mdxjsEsmFromMarkdown() + ] } /** @@ -48,9 +52,9 @@ export function mdxFromMarkdown() { export function mdxToMarkdown(options) { return { extensions: [ - mdxExpressionToMarkdown, + mdxExpressionToMarkdown(), mdxJsxToMarkdown(options), - mdxjsEsmToMarkdown + mdxjsEsmToMarkdown() ] } } diff --git a/package.json b/package.json index e48e5d3..b593bfd 100644 --- a/package.json +++ b/package.json @@ -36,17 +36,17 @@ "index.js" ], "dependencies": { - "mdast-util-from-markdown": "^1.0.0", - "mdast-util-mdx-expression": "^1.0.0", - "mdast-util-mdx-jsx": "^2.0.0", - "mdast-util-mdxjs-esm": "^1.0.0", - "mdast-util-to-markdown": "^1.0.0" + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-mdx-expression": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "mdast-util-mdxjs-esm": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" }, "devDependencies": { "@types/node": "^20.0.0", - "c8": "^7.0.0", - "micromark-extension-mdx": "^1.0.0", - "micromark-extension-mdxjs": "^1.0.0", + "c8": "^8.0.0", + "micromark-extension-mdx": "^2.0.0", + "micromark-extension-mdxjs": "^2.0.0", "prettier": "^2.0.0", "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0",