Skip to main content

Markdown linebreaks

Adding a simple linebreak in Markdown is definitely not intuitive. When you write:

Roses are red
Violets are blue

It will render:

Roses are red Violets are blue

If you write a newline between the two:

Roses are red

Violets are blue

It will render two paragraphs:

Roses are red

Violets are blue

The thing is to put two blank spaces at the end of the first line:

Roses are red␣␣
Violets are blue

It will then render:

Roses are red
Violets are blue

Comments