Skip to content

Commit 9059a07

Browse files
committed
Update example in readme
1 parent cdf83f8 commit 9059a07

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

readme.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ Now, running `node example` yields (positional info removed for brevity):
8989
spread: false,
9090
checked: null,
9191
children: [
92-
{
93-
type: 'paragraph',
94-
children: [{type: 'text', value: 'a list'}]
95-
}
92+
{type: 'paragraph', children: [{type: 'text', value: 'a list'}]}
9693
]
9794
}
9895
]
@@ -108,8 +105,22 @@ Now, running `node example` yields (positional info removed for brevity):
108105
value: '...props',
109106
data: {
110107
estree: {
111-
type: 'SpreadElement',
112-
argument: {type: 'Identifier', name: 'props'}
108+
type: 'Program',
109+
body: [
110+
{
111+
type: 'ExpressionStatement',
112+
expression: {
113+
type: 'ObjectExpression',
114+
properties: [
115+
{
116+
type: 'SpreadElement',
117+
argument: {type: 'Identifier', name: 'props'}
118+
}
119+
]
120+
}
121+
}
122+
],
123+
sourceType: 'module'
113124
}
114125
}
115126
}
@@ -306,10 +317,8 @@ type MDXJsxPhrasingContent = MDXJsxTextElement | PhrasingContent
306317

307318
* [`remarkjs/remark`][remark]
308319
— markdown processor powered by plugins
309-
* `remarkjs/remark-mdx`
320+
* [`remarkjs/remark-mdx`][remark-mdx]
310321
— remark plugin to support MDX
311-
* `remarkjs/remark-mdxjs`
312-
— remark plugin to support MDX.js
313322
* [`syntax-tree/mdast-util-from-markdown`][from-markdown]
314323
— mdast parser using `micromark` to create mdast from markdown
315324
* [`syntax-tree/mdast-util-to-markdown`][to-markdown]

0 commit comments

Comments
 (0)