Skip to content

fix(language-tools): fix MDX syntax highlighting for indented astro codeblocks#16719

Merged
matthewp merged 2 commits into
withastro:mainfrom
alexisintech:aa/fix-mdx-extension
May 14, 2026
Merged

fix(language-tools): fix MDX syntax highlighting for indented astro codeblocks#16719
matthewp merged 2 commits into
withastro:mainfrom
alexisintech:aa/fix-mdx-extension

Conversation

@alexisintech
Copy link
Copy Markdown
Contributor

@alexisintech alexisintech commented May 12, 2026

Changes

Bug reported: #16667
FIXES #16667

The Astro extension was causing MDX highlighting errors, but only when the code snippets were indented:

BEFORE FIX:

Image

AFTER FIX:

Screenshot 2026-05-12 at 16 09 35

Testing

  1. pnpm install
  2. pnpm -C packages/language-tools/vscode build
  3. In Cursor: Run and Debug → Launch Client
  4. Opened an MDX file and tested an indented astro codeblock

Docs

No docs necessary

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

🦋 Changeset detected

Latest commit: 34bfa2b

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

This PR includes changesets to release 1 package
Name Type
astro-vscode 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

@matthewp
Copy link
Copy Markdown
Contributor

Thank you so much! The screenshot is super helpful in this kind of change.

@matthewp matthewp merged commit 2b1df12 into withastro:main May 14, 2026
25 checks passed
@astrobot-houston astrobot-houston mentioned this pull request May 14, 2026
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.

BUG: Astro extension + MDX extension together causes MDX highlighting error

2 participants