fix: detect mdx
files using full extension
#7192
Merged
mdx
files using full extension
#7192