mdx-analyzer icon indicating copy to clipboard operation
mdx-analyzer copied to clipboard

Support formatting

Open remcohaszing opened this issue 1 year ago • 2 comments

Initial checklist

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

  1. We could make it configurable. We could also do this later
  2. We could close this issue and not support formatting.

remcohaszing avatar Jul 09 '24 11:07 remcohaszing

sure I’m :+1:

wooorm avatar Jul 09 '24 11:07 wooorm

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.

github-actions[bot] avatar Jul 09 '24 11:07 github-actions[bot]

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.

remcohaszing avatar Sep 04 '25 17:09 remcohaszing

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

github-actions[bot] avatar Sep 04 '25 17:09 github-actions[bot]

Hi team! Could you describe why this has been marked as external?

Thanks, — bb

github-actions[bot] avatar Sep 04 '25 17:09 github-actions[bot]