-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Provide a CLI based on unified-args
#2378
Comments
simple way is |
By extension, should we have |
And, wouldn’t an MDX CLI be more about compiling/evaluating code? |
IMO configuration is usually preferred over CLI arguments.
This goes for other tooling as well. I.e. it’s perfectly possible to run git, Prettier, or ESLint using CLI arguments and no configuration, but it’s very inconvenient and you don’t get editor integrations. IMO this falls in the same category. Perhaps we could also investigate an MDX CLI for compiling code, but that’s a different issue and I don’t see a need for that right now. |
The difference between GFM and MDX is that typically it’s fine to treat other |
|
Closing this as an issue: we can use discussions for discussions. Then we can use issues for actionable things. |
Initial checklist
Problem
The unified ecosystem has some CLIs based on
unified-args
that can be used for linting and formatting. Since MDX is based on remark,remark-cli
can support MDX, but it’s not obvious. By defaultremark-cli
doesn’t containremark-mdx
, not does it check.mdx
files by default.It would be nice if there is a simple blessed way to lint MDX files.
Solution
Create a new package
remark-mdx-cli
. This registers theremark-mdx
command.This will also be accompanied by a language server (
remark-mdx-language-server
) and VSCode plugin (unifiedjs.vscode-remark-mdx
) based onunified-language-server
.Alternatives
There are plenty of variations possible on the names of various parameters. I.e. should the package name be scoped? Should the command be different? Should it use
.remarkignore
instead of.remarkmdxignore
?The text was updated successfully, but these errors were encountered: