Skip to content

Commit ba83f42

Browse files
committed
Refactor docs
1 parent a51210e commit ba83f42

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
@@ -116,9 +116,9 @@ import {
116116
} from 'mdast-util-gfm-autolink-literal'
117117
import {toMarkdown} from 'mdast-util-to-markdown'
118118

119-
const doc = await fs.readFile('example.md')
119+
const document = await fs.readFile('example.md', 'utf8')
120120

121-
const tree = fromMarkdown(doc, {
121+
const tree = fromMarkdown(document, {
122122
extensions: [gfmAutolinkLiteral()],
123123
mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
124124
})

0 commit comments

Comments
 (0)