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 4
4
*
5
5
* @typedef {import('mdast-util-mdx-expression').MdxFlowExpression } MdxFlowExpression
6
6
* @typedef {import('mdast-util-mdx-expression').MdxTextExpression } MdxTextExpression
7
- * @typedef {import('mdast-util-mdxjs-esm').MdxjsEsm } MdxjsEsm
8
7
* @typedef {import('mdast-util-mdx-jsx').MdxJsxAttributeValueExpression } MdxJsxAttributeValueExpression
9
8
* @typedef {import('mdast-util-mdx-jsx').MdxJsxAttribute } MdxJsxAttribute
10
9
* @typedef {import('mdast-util-mdx-jsx').MdxJsxExpressionAttribute } MdxJsxExpressionAttribute
11
10
* @typedef {import('mdast-util-mdx-jsx').MdxJsxFlowElement } MdxJsxFlowElement
12
11
* @typedef {import('mdast-util-mdx-jsx').MdxJsxTextElement } MdxJsxTextElement
13
12
* @typedef {import('mdast-util-mdx-jsx').ToMarkdownOptions } ToMarkdownOptions
13
+ * @typedef {import('mdast-util-mdxjs-esm').MdxjsEsm } MdxjsEsm
14
14
*/
15
15
16
16
import {
@@ -44,7 +44,7 @@ export function mdxFromMarkdown() {
44
44
* expressions).
45
45
*
46
46
* @param {ToMarkdownOptions | null | undefined } [options]
47
- * Configuration.
47
+ * Configuration (optional) .
48
48
* @returns {ToMarkdownExtension }
49
49
* Extension for `mdast-util-to-markdown` to enable MDX (ESM, JSX,
50
50
* expressions).
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ import {visit} from 'unist-util-visit'
369
369
/** @type {import('mdast').Root} */
370
370
const tree = getMdastNodeSomeHow ()
371
371
372
- visit (tree, (node ) => {
372
+ visit (tree, function (node ) {
373
373
// `node` can now be an expression, JSX, or ESM node.
374
374
})
375
375
```
You can’t perform that action at this time.
0 commit comments