Soft-Wrap for Markdown; Hard-Wrap Otherwise


It’s been a tough decision, but I think I’ve finally made peace with it. From now on, I will no longer hard-wrap markdown documents in my personal projects. I use a tool called mdformat, which conveniently includes an option to convert all hard wraps into soft wraps.

mdformat --wrap no .

Now, I can finally copy a paragraph from my editor into text boxes on websites like GitHub, Hashnode, and Slack without worrying about strange formatting.