Markdownチュートリアル

Line Breaks

To create a line break (<br>), end a line with two or more spaces, then press return.

Line Break Syntax

Markdown SyntaxHTML SyntaxRendered Output
This is the first line.
This is the second line.
<p>This is the first line.<br/>This is the second line.</p>This is the first line.
This is the second line.

Best Practices for Line Break Syntax

Most Markdown programs support two or more spaces for line breaks, known as trailing whitespace.
However, spaces are hard to see in editors, and many people add spaces intentionally or unintentionally. For this reason, we might take another approach
We can use another way to create line breaks: HTML's br tag.

✅ Do this❌ Don't do this
This is the first line.
This is the second line.
This is the first line. This is the second line.
This is the first line.
This is the second line.
This is the first line. This is the second line.