Skip to content

Commit

Permalink
docs: fix cdn versions
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 7, 2024
1 parent 5dd3bed commit e5d9455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ To use `shiki` in the browser via CDN, you can use [esm.run](https://esm.run) or

<script type="module">
// be sure to specify the exact version
import { codeToHtml } from 'https://esm.sh/shiki@0.8.0'
import { codeToHtml } from 'https://esm.sh/shiki@1.0.0'
// or
// import { codeToHtml } from 'https://esm.run/shiki@0.8.0'
// import { codeToHtml } from 'https://esm.run/shiki@1.0.0'
const foo = document.getElementById('foo')
foo.innerHTML = await codeToHtml('console.log("Hi, Shiki on CDN :)")', {
Expand Down

0 comments on commit e5d9455

Please sign in to comment.