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(rehype): support special languages #808

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

fuma-nama
Copy link
Contributor

Description

Currently, special languages like plaintext and txt are treated as normal languages.

When lazy is not enabled, codeblocks with special languages will be ignored because highlighter.getLoadedLanguages() will never contain these languages.

This PR adds a check for isSpecialLang to allow styling codeblocks with special languages.

Linked Issues

#805

Additional context

Copy link

netlify bot commented Oct 12, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 32745e7
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/670a8fc74d213a00082186df
😎 Deploy Preview https://deploy-preview-808--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.

Copy link

netlify bot commented Oct 12, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 32745e7
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/670a8fc759ce9a0008bae3bb
😎 Deploy Preview https://deploy-preview-808--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.

@antfu antfu merged commit b8471aa into shikijs:main Oct 24, 2024
11 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