Markdown New Line: How to Insert Line Breaks & Paragraphs
In Markdown, pressing Enter once does not create a new line in rendered output. To create a hard line break, end the line with two trailing spaces and press Enter, or use the HTML <br> tag. To start a new paragraph, press Enter twice.
First line with two trailing spaces: Second line directly beneath it. Separate paragraph with an empty line between.
First line with two trailing spaces:
Second line directly beneath it.
Separate paragraph with an empty line between.
Platform Compatibility & Differences
GitHub issues and PRs automatically treat single newlines as breaks (GFM soft breaks). READMEs require two trailing spaces.
Single Enter in Discord creates a new line immediately.
Requires double spaces for a line break or double Enter for a paragraph.
Follows standard CommonMark (double spaces needed).
How to Use Markdown New Line
- Copy the ready-to-use Line Breaks syntax snippet below.
- Inspect the rendered live preview in both light and dark themes.
- Review platform compatibility differences for GitHub, Discord, Reddit, and Jupyter notebooks.
- Check common pitfalls and copy formatted snippets directly.
Practical Examples
Line Breaks Syntax Pattern
Markdown ignores single newlines to allow flexible source-code wrapping without altering rendered layout.
First line with two trailing spaces: Second line directly beneath it. Separate paragraph with an empty line between.
Rendered visual format
Common Mistakes & Troubleshooting
- Pressing Enter only once and wondering why words appear on the same line.
- Trailing spaces being stripped by code editor auto-trim configurations.
Frequently Asked Questions
How do I prevent my text editor from deleting my two trailing spaces?
You can use a backslash `\` at the end of the line or write `<br>` explicitly, which code editors will never delete.