← Back to list

Quick Methods to Force a New Line in GitHub README file

To force a sentence or a line of text onto a new line in a GitHub README file, you can use three different Markdown methods: adding two…

Akhil Aggarwal · 2026-06-03 06:16 · 0 claps · 1.0 min read
#github #github-readme #readme-file #github-profile-readme #tips-and-tricks
Open on Medium ↗
Wiki topics: 🔓 · Open Source

Quick Methods to Force a New Line in GitHub README file

To force a sentence or a line of text onto a new line in a GitHub README file, you can use three different Markdown methods: adding two trailing spaces, using a backslash (\), or inserting an HTML break tag (<br>)

**Quick Methods to Force a New Line**

  • Two Trailing Spaces (Most Common): Type two spaces at the very end of your sentence, then press Enter.
  • The Backslash (\): Place a backslash at the very end of your sentence, then press Enter.
  • The HTML Break Tag (<br>): Insert a <br> or <br /> tag directly where you want the line to break.
  • A Complete Blank Line (For Paragraphs): Press Enter twice to leave an empty line, creating a brand new paragraph block.

Examples of How It Looks in Code

You can see how each option is written in your raw .md file compared to how it renders on the GitHub Markdown Editor:

  1. Using Two Spaces
This is my first sentence.[space][space]
This sentence will now start on a new line.
  1. Using a Backslash
This is my first sentence.\
This sentence will now start on a new line.
  1. Using an HTML Break Tag
This is my first sentence.<br>
This sentence will now start on a new line.

Why a Normal Single Enter Doesn't Work

Standard GitHub Flavored Markdown Syntax ignores a single line break in your raw text. It automatically groups consecutive lines into a single, continuous paragraph to keep your layout responsive across different screen sizes.


메타데이터
post_id
e2db3673d4ec
slug
quick-methods-to-force-a-new-line-in-github-readme-file-e2db3673d4ec
url
https://medium.com/@akhilaggarwal7790/quick-methods-to-force-a-new-line-in-github-readme-file-e2db3673d4ec
canonical_url
https://medium.com/@akhilaggarwal7790/quick-methods-to-force-a-new-line-in-github-readme-file-e2db3673d4ec
author_url
https://medium.com/@akhilaggarwal7790
status
ok
fetched_at
2026-08-19 04:21:17