Skip to content

Commit 1fc38ce

Browse files
authoredJan 29, 2024
Merge pull request #16 from cjones26/main
Update README.md to ensure appropriate compilation output is logged
2 parents 1d6bd4c + 397786b commit 1fc38ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ import { compile } from '@mdx-js/mdx'
4949
import remarkFrontmatter from 'remark-frontmatter'
5050
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
5151

52-
const { contents } = await compile(await readFile('example.mdx'), {
52+
const { value } = await compile(await readFile('example.mdx'), {
5353
jsx: true,
5454
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter]
5555
})
56-
console.log(contents)
56+
console.log(value)
5757
```
5858

5959
Roughly yields:

0 commit comments

Comments
 (0)