Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update CDN shiki version to v3.0.0 (current) #958

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

Hephaest
Copy link
Contributor

@Hephaest Hephaest commented Mar 4, 2025

Description

Update shiki version to v3.0.0 in CDN Usage

Linked Issues

Additional context

Yesterday, my friend wanted to download shiki through CDN but the documentation didn't provide the latest version to her. I think it would mislead others as well, especially for the newbies who can't find help but fully trust the documentation.

Demo

Before After
image image

@@ -220,7 +220,7 @@ 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@1.0.0'
import { codeToHtml } from 'https://esm.sh/shiki@3.0.0'
// or
// import { codeToHtml } from 'https://esm.run/shiki@1.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This as well then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out! I have updated the demo as well. 💟 @antfu

Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for shiki-next failed.

Name Link
🔨 Latest commit 12a26cb
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/67c6bb42aec8e800086d7469

Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for shiki-matsu failed.

Name Link
🔨 Latest commit 12a26cb
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/67c6bb42026f5f0008ab0b41

@Hephaest Hephaest requested a review from antfu March 4, 2025 08:38
@antfu antfu merged commit 05ccf77 into shikijs:main Mar 5, 2025
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants