Skip to content

languages: Add .mdc as a recognized Markdown file suffix#50074

Merged
MrSubidubi merged 1 commit intozed-industries:mainfrom
avifenesh:add-mdc-markdown-suffix
Feb 25, 2026
Merged

languages: Add .mdc as a recognized Markdown file suffix#50074
MrSubidubi merged 1 commit intozed-industries:mainfrom
avifenesh:add-mdc-markdown-suffix

Conversation

@avifenesh
Copy link
Contributor

Highlight files ending in .mdc as Markdown.

The .mdc extension is used by Cursor for its Markdown-based rule files (.cursor/rules/*.mdc). These files are standard Markdown with optional YAML frontmatter, which the existing Markdown grammar already handles well. Adding .mdc to the recognized suffixes ensures proper syntax highlighting out of the box.

This was requested during review of the agnix extension PR (zed-industries/extensions#4743) by @MrSubidubi as the preferred approach over defining a custom MDC language in an extension.

Release Notes:

  • Added .mdc as a recognized Markdown file extension.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 25, 2026
@chatgpt-codex-connector

This comment was marked as resolved.

@MrSubidubi MrSubidubi self-assigned this Feb 25, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 25, 2026
Copy link
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Thank you!

@MrSubidubi MrSubidubi changed the title Add .mdc as a recognized Markdown file suffix languages: Add mdc as a recognized Markdown file suffix Feb 25, 2026
@MrSubidubi MrSubidubi changed the title languages: Add mdc as a recognized Markdown file suffix languages: Add .mdc as a recognized Markdown file suffix Feb 25, 2026
@MrSubidubi MrSubidubi enabled auto-merge (squash) February 25, 2026 10:30
@MrSubidubi MrSubidubi merged commit 938b8ab into zed-industries:main Feb 25, 2026
39 checks passed
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
…tries#50074)

Highlight files ending in `.mdc` as Markdown.

The `.mdc` extension is used by Cursor for its Markdown-based rule files
(`.cursor/rules/*.mdc`). These files are standard Markdown with optional
YAML frontmatter, which the existing Markdown grammar already handles
well. Adding `.mdc` to the recognized suffixes ensures proper syntax
highlighting out of the box.

This was requested during review of the agnix extension PR
([zed-industries/extensions#4743](zed-industries/extensions#4743))
by @MrSubidubi as the preferred approach over defining a custom MDC
language in an extension.

Release Notes:

- Added `.mdc` as a recognized Markdown file extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants