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: ignore highlighting for no lang #140

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

atomiks
Copy link
Collaborator

@atomiks atomiks commented Dec 19, 2023

No lang in the meta and no default code lang (defaults to falsy value "") means all highlighting is skipped entirely, and the <pre><code> tags and text content are raw.

Specifying plaintext as a default lang ensures all code blocks will get default highlighting like before.

Fixes #138

Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for rehype-pretty-code canceled.

Name Link
🔨 Latest commit 5f6a102
🔍 Latest deploy log https://app.netlify.com/sites/rehype-pretty-code/deploys/658158e2034eeb00089d5afa

Copy link

@jackyzha0 jackyzha0 left a comment

Choose a reason for hiding this comment

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

this as well, appreciate the quick fixes!

@atomiks atomiks merged commit 643ea3a into master Dec 19, 2023
5 checks passed
@atomiks atomiks deleted the fix/langless-code-blocks branch December 19, 2023 16:54
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.

Option to disable default language support
2 participants