From 7f00a65dc0276453e7cb10eba8bb40a64bcddfe6 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 23 May 2022 19:24:34 +0800 Subject: [PATCH] Fix README [skip ci] --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 083cee0..69f547d 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ This library exports three functions to compile MDX: `compile`, `compileSync`, a Asynchronously compile a string: ```js +import { compile } from '@storybook/mdx1-csf'; + const code = '# hello\n\nworld'; const output = await compile(code); ``` @@ -42,6 +44,8 @@ const output = await compile(code); Synchronously compile a string: ```js +import { compileSync } from '@storybook/mdx1-csf'; + const code = '# hello\n\nworld'; const output = compileSync(code); ```