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

fix(types): support preload built-in shiki languages as string #4513

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

antfu
Copy link
Member

@antfu antfu commented Jan 22, 2025

This PR only updates types. As markdown.langugages are passed to createHighlighter, it also supports string literals. This allows users to pre-load built-in languages if they know they would need them anyway.

@brc-dd brc-dd merged commit 4f77b4f into main Jan 22, 2025
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants