prettier icon indicating copy to clipboard operation
prettier copied to clipboard

Markdown line wrap not working?

Open aarong opened this issue 8 years ago • 3 comments

I'm running Prettier on a markdown file that has very long lines. It formats the file correctly except that the long lines are not wrapped.

I tried the following...

prettier README.md --write prettier README.md --write --print-width 80

... and the long lines were not broken at the character limit (though the file was otherwise formatted).

My understanding is that lines should be wrapped unless --no-prose-wrap is specified.

aarong avatar Sep 20 '18 01:09 aarong

--prose-wrap defaults to preserve, you have to specify always to get it worked. If it's still not working, please provide steps to reproduce.

ikatyang avatar Sep 20 '18 01:09 ikatyang

Worked. Thank you so much - apologies for cluttering the issues.

aarong avatar Sep 20 '18 21:09 aarong

🎉 the no-response bot works properly now

j-f1 avatar Sep 20 '18 22:09 j-f1