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

Use first word only from info string to match language in code block highlighting #1354

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

emmatown
Copy link
Member

Closes #1353

This doesn't add an option for this since this behavior is just more correct imo. e.g. while the CommonMark spec talks about how the meaning of the info string isn't strictly defined, it mentions that specifically the first word is typically used, not the whole info string

Copy link

changeset-bot bot commented Nov 20, 2024

🦋 Changeset detected

Latest commit: 63caca1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@keystatic/core Patch
@keystar/docs Patch
@example/astro-content Patch
@example/astro Patch
@example/localization Patch
@example/next-app Patch
@example/next-block-builder Patch
@example/next-pages Patch
@keystatic/remix-test-app Patch
keystatic-docs Patch
@keystatic/templates-astro Patch
@keystatic/templates-nextjs Patch
@keystatic/templates-remix Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@emmatown emmatown merged commit 02a7441 into main Nov 20, 2024
8 checks passed
@emmatown emmatown deleted the use-first-word-for-lang-in-editor branch November 20, 2024 02:28
@github-actions github-actions bot mentioned this pull request Nov 20, 2024
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.

Feature Request: Support for Ignoring Aditional Directives in the Code Block Language Field
1 participant