Skip to content

Commit 6bb953a

Browse files
committed
Refactor code-style
1 parent 9910b78 commit 6bb953a

File tree

3 files changed

+502
-490
lines changed

3 files changed

+502
-490
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
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

1616
import {
@@ -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).

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ import {visit} from 'unist-util-visit'
369369
/** @type {import('mdast').Root} */
370370
const 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
```

0 commit comments

Comments
 (0)