Skip to content

Conversation

@qingpeng9802
Copy link

Description

Currently, mdxoptions is saying that gatsby-plugin-mdx supports the CompileOptions, but in fact, only supports the ProcessorOptions. The only difference between them is whether supporting {format: 'detect'}.

Thus, this PR will support {format: 'detect'}. This feature will benefit users widely, as they will no longer need to unilaterally choose MD or MDX, and essentially fully empowering the option extensions: ['.mdx', '.md']

Documentation

add

Tests

add matrix unit tests for [md, mdx] files and [md, mdx, detect] options

Related Issues

in the function `compileMDX`
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 20, 2025
@serhalp serhalp added the type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement. label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants