Skip to content

Commit ef2d59f

Browse files
authored
Fix typos
Closes GH-3. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 5a1964e commit ef2d59f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ import {toMarkdown} from 'mdast-util-to-markdown'
109109
const doc = await fs.readFile('example.md')
110110

111111
const tree = fromMarkdown(doc, {
112-
extensions: [gfmTaskListItem],
113-
mdastExtensions: [gfmTaskListItemFromMarkdown]
112+
extensions: [gfmTaskListItem()],
113+
mdastExtensions: [gfmTaskListItemFromMarkdown()]
114114
})
115115

116116
console.log(tree)
117117

118-
const out = toMarkdown(tree, {extensions: [gfmTaskListItemToMarkdown]})
118+
const out = toMarkdown(tree, {extensions: [gfmTaskListItemToMarkdown()]})
119119

120120
console.log(out)
121121
```

0 commit comments

Comments
 (0)