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

feat: add codeToTokens API, rename codeToThemedTokens to codeToTokensBase #572

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

antfu
Copy link
Member

@antfu antfu commented Jan 31, 2024

This PR introduced a high-level codeToTokens which will generate tokens based on theme or themes, and provide that in the transformer context for easier usage.

A semi-breaking change is that it also renamed codeToThemedTokens to codeToTokensBase for better consistency. A compact layer is provided but will be removed in the stable version.

Copy link

netlify bot commented Jan 31, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 52f2c4c
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/65ba5d62989f6c0008cbd58e
😎 Deploy Preview https://deploy-preview-572--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 31, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 52f2c4c
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/65ba5d6284da8f0008c0c151
😎 Deploy Preview https://deploy-preview-572--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu antfu merged commit d123b4b into main Jan 31, 2024
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.

1 participant