Skip to content

Commit

Permalink
Refactor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 23, 2025
1 parent a51210e commit ba83f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ import {
} from 'mdast-util-gfm-autolink-literal'
import {toMarkdown} from 'mdast-util-to-markdown'

const doc = await fs.readFile('example.md')
const document = await fs.readFile('example.md', 'utf8')

const tree = fromMarkdown(doc, {
const tree = fromMarkdown(document, {
extensions: [gfmAutolinkLiteral()],
mdastExtensions: [gfmAutolinkLiteralFromMarkdown()]
})
Expand Down

0 comments on commit ba83f42

Please sign in to comment.