Advertisement
❮ Previous: Markdown Paragraphs Next: Markdown Emphasis ❯

Markdown Line Breaks

You can create a line break or new line <br>, end a line with two or more spaces, and then type return.

If your Markdown application supports HTML, you can use the <br> HTML tag.


Syntax:

This paragraph will break here
and continue.

Or

This paragraph will break here<br>
and continue.
Markdown HTML Output
This paragraph will break here
and continue.
<p>This paragraph will break here <br> and continue. </p> This paragraph will break here
and continue.

To create line break just type return and they’ll create a line break, see following example:

Example

This paragraph will break here
and continue.

Try this code ❯


Advertisement

You can use trailing whitespace (two or more spaces) for line breaks.

It is hard to see trailing whitespace in an editor, and many people accidentally or intentionally put two spaces after every sentence.

That is the reason, you may want to use something other than trailing whitespace for line breaks.

Example

This paragraph will break here

and continue.

Try this code ❯

Note - Not all Markdown applications support this, so it is not a great option from a compatibility perspective.


You can also use trailing white space or the <br> HTML tag at the end of the line.

Example

This paragraph will break here<br>and continue.

Try this code ❯


There is another options to break line but we do not recommend to use, by using a backslash \ at the end of the line:

Example

This paragraph will break here\and continue.

Try this code ❯

Note - Not all Markdown applications support this, so it isn’t a great option from a compatibility perspective.

❮ Previous: Markdown Paragraphs Next: Markdown Emphasis ❯
Advertisement