TIL: Line breaks in markdown

I’ve been using markdown for writing for years, yet this one bit bugged me—I couldn’t get a line break (as against a paragraph break) in text.

Finally figured this out yesterday, and it is so so simple:

Place two spaces at the end of a line, and markdown will insert a line break.

This works in normal text as well as inside blockquotes. So simple, so good. No more inserting <br/> tags at end of many lines.

Now, what took me so many years to find this?!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.