Skip to content

Add MDX language support#43

Merged
kunlinglio merged 2 commits into
kunlinglio:masterfrom
nicodoggie:master
Jun 27, 2026
Merged

Add MDX language support#43
kunlinglio merged 2 commits into
kunlinglio:masterfrom
nicodoggie:master

Conversation

@nicodoggie

Copy link
Copy Markdown
Contributor

Summary

Adds MDX as a supported language so path extraction works for .mdx files.

Changes

  • Registers MDX in the Zed extension language list.
  • Adds mdx to the internal Language enum.
  • Routes MDX documents through the existing Markdown tree-sitter parser and extraction path.
  • Adds a regression test covering MDX imports, Markdown image links, and JSX-style path attributes.

Validation

  • cargo test test_mdx_extract_strings_with_markdown_parser

@kunlinglio

Copy link
Copy Markdown
Owner

Thanks for your contribution. Looks good to me!

And the tree_sitter_supported assertion is a nice touch too, I should add that to my other tests :)

I'll add a changelog entry and merge it in.

@kunlinglio kunlinglio left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@kunlinglio
kunlinglio merged commit 8063209 into kunlinglio:master Jun 27, 2026
5 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