-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support .mdx files #129
Comments
MDX and markdown are definitely different, and there is already |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Related issues:
I think those issues need to be resolved first. Then we can investigate support in |
This comment has been minimized.
This comment has been minimized.
Thank you! Yes my use-case is aligned to that @remcohaszing — showing our remark lint issues in MDX files with IntelliSense. Our workaround works perfectly today for linting MDX with vscode-remark (by using remark-mdx in our |
@remcohaszing given the extension works with MDX in our workaround... in theory, would updating this to simply include MDX files work? vscode-remark/src/extension.js Line 17 in a6b066c
Ideally there would be an exposed setting as well that toggles that so it's opt-in. Also understand if you prefer to go with the more foundational work of handling rule overrides. |
Cf https://github.com/orgs/mdx-js/discussions/2067#discussioncomment-3023340 Remark-cli and thus remark-vscode are the recommended tools to format MDX |
Yeah I'm using that for CLI formatting today, but this issue is primarily about highlighting lint errors in the same way that Prettier would, like so: This is forcebly enabled for MDX in my VSCode via the method described in the Alternatives section in the issue. And these rules are specified via |
Initial checklist
Problem
vscode-remark only recognizes markdown files
vscode-remark/src/extension.js
Line 17 in a6b066c
but there is now a dedicated MDX language in VS Code. it would be awesome if we could use remark lint on our MDX files!
Solution
Update the documentSelector to include MDX files
Alternatives
You can force VS Code to treat MDX as Markdown, which allows vscode-remark to work, but it comes at the cost of all the other language features of MDX in VS Code via vscode-mdx
The text was updated successfully, but these errors were encountered: