We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51210e commit ba83f42Copy full SHA for ba83f42
readme.md
@@ -116,9 +116,9 @@ import {
116
} from 'mdast-util-gfm-autolink-literal'
117
import {toMarkdown} from 'mdast-util-to-markdown'
118
119
-const doc = await fs.readFile('example.md')
+const document = await fs.readFile('example.md', 'utf8')
120
121
-const tree = fromMarkdown(doc, {
+const tree = fromMarkdown(document, {
122
extensions: [gfmAutolinkLiteral()],
123
mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
124
})
0 commit comments