Skip to content

Commit

Permalink
docs: Update README.md to ensure appropriate compilation output is lo…
Browse files Browse the repository at this point in the history
…gged
  • Loading branch information
cjones26 committed Jan 29, 2024
1 parent 1d6bd4c commit 397786b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ import { compile } from '@mdx-js/mdx'
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'

const { contents } = await compile(await readFile('example.mdx'), {
const { value } = await compile(await readFile('example.mdx'), {
jsx: true,
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter]
})
console.log(contents)
console.log(value)
```

Roughly yields:
Expand Down

0 comments on commit 397786b

Please sign in to comment.