File tree Expand file tree Collapse file tree 3 files changed +502
-490
lines changed Expand file tree Collapse file tree 3 files changed +502
-490
lines changed Original file line number Diff line number Diff line change 44 *
55 * @typedef {import('mdast-util-mdx-expression').MdxFlowExpression } MdxFlowExpression
66 * @typedef {import('mdast-util-mdx-expression').MdxTextExpression } MdxTextExpression
7- * @typedef {import('mdast-util-mdxjs-esm').MdxjsEsm } MdxjsEsm
87 * @typedef {import('mdast-util-mdx-jsx').MdxJsxAttributeValueExpression } MdxJsxAttributeValueExpression
98 * @typedef {import('mdast-util-mdx-jsx').MdxJsxAttribute } MdxJsxAttribute
109 * @typedef {import('mdast-util-mdx-jsx').MdxJsxExpressionAttribute } MdxJsxExpressionAttribute
1110 * @typedef {import('mdast-util-mdx-jsx').MdxJsxFlowElement } MdxJsxFlowElement
1211 * @typedef {import('mdast-util-mdx-jsx').MdxJsxTextElement } MdxJsxTextElement
1312 * @typedef {import('mdast-util-mdx-jsx').ToMarkdownOptions } ToMarkdownOptions
13+ * @typedef {import('mdast-util-mdxjs-esm').MdxjsEsm } MdxjsEsm
1414 */
1515
1616import {
@@ -44,7 +44,7 @@ export function mdxFromMarkdown() {
4444 * expressions).
4545 *
4646 * @param {ToMarkdownOptions | null | undefined } [options]
47- * Configuration.
47+ * Configuration (optional) .
4848 * @returns {ToMarkdownExtension }
4949 * Extension for `mdast-util-to-markdown` to enable MDX (ESM, JSX,
5050 * expressions).
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ import {visit} from 'unist-util-visit'
369369/** @type {import('mdast').Root} */
370370const tree = getMdastNodeSomeHow ()
371371
372- visit (tree, (node ) => {
372+ visit (tree, function (node ) {
373373 // `node` can now be an expression, JSX, or ESM node.
374374})
375375```
You can’t perform that action at this time.
0 commit comments