Prettier for Markdown

August 06, 2020

While working on this blog I got annoyed with manually worrying about line breaks. I use Prettier on save for all my code, so why should I have to think about this problem while writing blog posts?

It turns out Prettier works out of the box with Markdown files since version 1.8, but its default configuration is intended to be unobtrusive.

You have to add the following option to your .prettierrc to get line wrapping in Markdown files:

"proseWrap": "always"

Life's too short to worry about formatting!

🙂