Skip to content

Commit 3d51e94

Browse files
committed
Update README.md
1 parent 9efb59b commit 3d51e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { cssToHtml } from 'css-to-html';
1515

1616
const css = 'p { color: purple; }';
1717

18-
const html = cssToHtml(css);
18+
const html = await cssToHtml(css);
1919
```
2020

2121
Or from a style element:
@@ -24,7 +24,7 @@ import { cssToHtml } from 'css-to-html';
2424

2525
const css = document.querySelector('style').sheet.cssRules;
2626

27-
const html = cssToHtml(css);
27+
const html = await cssToHtml(css);
2828
```
2929

3030

0 commit comments

Comments
 (0)