Skip to content
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

MD004 overwritten by prettier #1179

Open
CWSites opened this issue Apr 18, 2024 · 3 comments
Open

MD004 overwritten by prettier #1179

CWSites opened this issue Apr 18, 2024 · 3 comments
Labels

Comments

@CWSites
Copy link

CWSites commented Apr 18, 2024

I have both markdownlint and prettier configured for my project. I observed that prettier is overwriting my unordered list options (it auto changes + and * to -) and was wondering if there is a way to prevent this from happening?

The only thing I can think of right now is to have prettier ignore .md files, but this isn't ideal.

When researching prettier's approach I came across this issue which I believe is the root cause. prettier/prettier#4251

@DavidAnson
Copy link
Owner

I'm not a prettier user and don't have recommendations for how to configure it, sorry.

@CWSites
Copy link
Author

CWSites commented Apr 26, 2024

Thanks for your quick reply. I'm wondering if anyone else that uses this has any suggestions of how they get past this?

@aphedges
Copy link

aphedges commented May 3, 2024

Prettier intentionally limits how much it can be configured, which includes providing no option to change the style of Markdown unordered lists. If you want a formatter that is less opinionated, then Prettier is probably not the tool for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants