I saw that prettier is supporting mdx.
Do I need to configure vscode in any way to format my mdx files?
At the moment the prettier statusbar button is not visible in mdx files.
I get the error There is no document formatter for 'mdx'-files installed.
Not yet published. It should be automatic once we bundle a version which has this support
I'm running into this same issue when trying to run the npm script below. Any idea this will land in an official release?
"format": "prettier --write '{,!(node_modules|.cache|public)/**/}*.{js,json,css,md,mdx}'"
Error: Couldn't resolve parser "mdx"
Sorry, looks like I may have posted in the wrong repo? So is it prettier itself that is waiting for this update, or just prettier-vscode?
@johncmunson if you have the newest version installed locally in your project that supports mdx than it is prettier. However this project prettier-vscode also comes with a bundled version for cases if you don't have the prettier installed locally in your project. We should also update that one once mdx is available in prettier.
Note: I don't the status of mdx in prettier.
For reference, prettier has merged a PR for MDX support. It should land in 1.15
https://github.com/prettier/prettier/pull/4975
It is now live
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Not yet published. It should be automatic once we bundle a version which has this support