Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 22, 2025
1 parent 7483637 commit ffb41ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

Enhance [`markdown-it`](https://github.com/markdown-it/markdown-it) to support **async** highlight function.

This package is a wrapper on top of `markdown-it` instead of a fork. Updates from `markdown-it` will be reflected without as transient dependencies.

## Usage

```ts
Expand All @@ -20,6 +22,7 @@ const md = MarkdownItAsync({
}
})

// Note you need to use `renderAsync` instead of `render`
const html = await md.renderAsync(markdown)
```

Expand Down

0 comments on commit ffb41ee

Please sign in to comment.