Skip to content

Commit

Permalink
docs: example typo (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayden12138 authored Jun 18, 2024
1 parent 84364ed commit ff1d2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const { tokens } = await codeToTokens('<div class="foo">bar</div>', {
```ts twoslash theme:catppuccin-mocha
import { codeToHast } from 'shiki'

const hast = codeToHast('.text-red { color: red; }', {
const hast = await codeToHast('.text-red { color: red; }', {
lang: 'css',
theme: 'catppuccin-mocha'
})
Expand Down

0 comments on commit ff1d2f8

Please sign in to comment.