Skip to content

Commit

Permalink
Fix README [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 23, 2022
1 parent 491cebd commit 7f00a65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand All @@ -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);
```
Expand Down

0 comments on commit 7f00a65

Please sign in to comment.