How to add extra space in Markdown?

Prev Next

Professional
Business
Enterprise






Markdown doesn’t have a direct way to add extra space between lines. However, you can use simple HTML tags as a workaround:

  • Use <br> to insert a line break.
  • Use <p></p> to create a new paragraph with extra spacing.
  • Use &nbsp; to add a single space between words or elements.
NOTE

In Markdown, pressing Enter once does not create a new line. Instead, the next sentence continues on the same line. To start a new paragraph, press Enter twice to add a blank line.

Solution

1. Using HTML Tags

For more precise control over spacing, you can use HTML tags directly within your Markdown document. For example, you can use the <br> tag to insert a line break and create space:

  1. Go to the desired Markdown article in the editor.
  2. Paste the below code in the location where you want extra space.
<br>
NOTE

Markdown doesn't have a built-in way to add extra space. You can use the HTML tags provided in this article as a workaround within Markdown to achieve this effect.

  1. If you want to add more space, you can add the same code multiple times as per your requirement.

Input

Line 1
<br>
<br>
Line 2

Outcome
Line 1




Line 2


2. Adding Non-Breaking Space

If you want to add extra spaces within a line or between words, you can use the HTML non-breaking space character &nbsp;

Input

This sentence has extra &nbsp; &nbsp; &nbsp;spaces between some words.

Outcome

This sentence has extra         spaces between some words.