Skip to content

Commit 6c4781f

Browse files
authored
Update README.md with new API
1 parent 7840f7d commit 6c4781f

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
@@ -14,7 +14,7 @@ $ npm install @github/paste-markdown
1414
## Usage
1515

1616
```js
17-
import subscribe from '@github/paste-markdown'
17+
import {subscribe} from '@github/paste-markdown'
1818

1919
// Subscribe the behavior to the textarea.
2020
subscribe(document.querySelector('textarea[data-paste-markdown]'))
@@ -27,7 +27,7 @@ be applied to any element matching a selector.
2727

2828
```js
2929
import {observe} from 'selector-observer'
30-
import subscribe from '@github/paste-markdown'
30+
import {subscribe} from '@github/paste-markdown'
3131

3232
// Subscribe the behavior to all matching textareas.
3333
observe('textarea[data-paste-markdown]', {subscribe})

0 commit comments

Comments
 (0)