mdx-analyzer
mdx-analyzer copied to clipboard
Support formatting
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
Problem
There’s no proper formatting solution yet for MDX. Prettier support is a work in progress (https://github.com/prettier/prettier/issues/12209, https://github.com/prettier/prettier/pull/13676). The remark CLI and language server don’t properly support MDX yet (https://github.com/mdx-js/mdx/issues/2378, https://github.com/remarkjs/vscode-remark/issues/129, https://github.com/unifiedjs/unified-engine/issues/56).
Solution
The MDX language server can support formatting for MDX based on remark programmatically. This would be opiniated unconfigurable formatting.
Alternatives
- We could make it configurable. We could also do this later
- We could close this issue and not support formatting.
sure I’m :+1:
Hi! This was marked as ready to be worked on! Note that while this is ready to be worked on, nothing is said about priority: it may take a while for this to be solved.
Is this something you can and want to work on?
Team: please use the area/* (to describe the scope of the change), platform/* (if this is related to a specific one), and semver/* and type/* labels to annotate this. If this is first-timers friendly, add good first issue and if this could use help, add help wanted.
I’m closing this in favor of mdxlint. The goal of this issue was to implement something along the same lines, but mdxlint is more flexible via its configuration and plugin system.
Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.
Hi team! Could you describe why this has been marked as external?
Thanks, — bb