Learn
Learn

Line breaks in Markdown

A single Enter doesn't break a line in Markdown. Here's why, and the two reliable ways to do it.

~2 min

Why your line didn't break

Markdown joins adjacent lines into one paragraph. Pressing Enter once isn't enough; the two lines render as one.

You typed
Line one
Line two
Renders as
Line one Line two

Two ways that work

End the line with two spaces, then press Enter. This forces a hard line break.

markdown
Line one··
Line two

Leave a blank line between them. This starts a new paragraph, with more space.

markdown
Line one

Line two
For text you feed to AI, prefer blank lines (real paragraphs). Two trailing spaces are invisible and easy to lose.
More guides
What is Markdown Tables Cheat sheet Line breaks Links PDF to Markdown