Skip to content

Commit

Permalink
Update @types/mdast, mdast utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 12, 2023
1 parent 4710c08 commit 52c774b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
10 changes: 7 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
}

/**
Expand All @@ -48,9 +52,9 @@ export function mdxFromMarkdown() {
export function mdxToMarkdown(options) {
return {
extensions: [
mdxExpressionToMarkdown,
mdxExpressionToMarkdown(),
mdxJsxToMarkdown(options),
mdxjsEsmToMarkdown
mdxjsEsmToMarkdown()
]
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 52c774b

Please sign in to comment.