HomeMarkdown → Line Breaks

Line breaks & new lines in Markdown

Pressing Enter once usually does not create a visible new line in Markdown. There are three ways to control line breaks, depending on whether you want a new paragraph or just a new line.

New paragraph — leave a blank line

The most common case: separate blocks of text with one empty line.

First paragraph.

Second paragraph (a blank line between them).

First paragraph.

Second paragraph (a blank line between them).

Hard line break — two trailing spaces

To break a line within the same paragraph, end the line with two spaces, then press Enter. (The two trailing spaces are invisible — that's why single Enters often seem ignored.)

Line one with two trailing spaces
Line two — same paragraph, new line.

Line one with two trailing spaces Line two — same paragraph, new line.

Hard line break — a backslash

Many Markdown flavors (including GitHub) also accept a trailing \ backslash, which is easier to see than trailing spaces.

Line one with a backslash\
Line two.

Line one with a backslash
Line two.

Good to know

Related: cheat sheet · live editor.

Have a document instead of text?

Convert PDFs, Word, PowerPoint, Excel, and images into clean Markdown — free, no signup.

Convert a file to Markdown →