mdx-js / mdx-analyzer

MDX extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx
MIT License
342 stars 21 forks source link

Support formatting #456

Open remcohaszing opened 3 months ago

remcohaszing commented 3 months ago

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.
wooorm commented 3 months ago

sure I’m :+1:

github-actions[bot] commented 3 months ago

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.