Skip to content

Commit

Permalink
Merge pull request #16 from cjones26/main
Browse files Browse the repository at this point in the history
Update README.md to ensure appropriate compilation output is logged
  • Loading branch information
remcohaszing committed Jan 29, 2024
2 parents 1d6bd4c + 397786b commit 1fc38ce
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 1fc38ce

Please sign in to comment.