From 397786bbe2032c7e02c00f8e14e7bb1e92376e3b Mon Sep 17 00:00:00 2001 From: Charles Jones Date: Mon, 29 Jan 2024 09:12:45 -0500 Subject: [PATCH] docs: Update README.md to ensure appropriate compilation output is logged --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 771240f..313d9d9 100644 --- a/README.md +++ b/README.md @@ -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: