-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to use mdx parser on .md files? #214
Comments
Hi @kud: Have you tried a configuration override? |
Interesting option! I didn't know about that, I was searching into your options, not the one in prettier. However, it doesn't work as you can see:
module.exports = {
"overrides": [
{
"files": "*.md",
"options": {
"parser": "mdx"
}
}
]
} even if mdx is read in the config, it's markdown used as parser. I don't know why. |
Add this to your JsPrettier.sublime-settings: "additional_cli_args": { "--config-precedence": "file-override" } |
Perfect! it works. Thank you very much. :) |
This issue has been automatically locked due to inactivity. Please open a new issue for related bugs. |
Hello,
I've got a question. For some reasons (I explained here:http://diary.kud.io/en/posts/2020/05/10/how-to-edit-a-markdown-in-2020-part-1-zmv) I had to switch my mdx files from
.mdx
to.md
.However, when I use JsPrettier, it uses the markdown parser instead of mdx one (which is normal). Is there a way to always use mdx parser for markdown files?
Thank you.
The text was updated successfully, but these errors were encountered: