Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force a linebreak?

I've noticed that if I start a new paragraph right after an image, most renderers leave inadequate space between the image and the text below. The paragraph ends up looking like a legend. While this is useful when I do want to have a legend, sometimes I'd just like to insert an image in between two paragraphs, and have it adequately spaced below as above.

I correct this issue currently with:

Lorem ipsum dolor sit amet, consectetur adipiscing elit:  [IMAGE]  <br/><br/>  Pellentesque pharetra turpis vitae velit consequat placerat. Duis sed volutpat neque, et scelerisque orci. 

But this strikes me as inelegant: I would like to avoid the HTML if possible.

Is there another way to force a linebreak?

I'm using Markdown Preview Plus for Atom to render.

like image 208
Superbest Avatar asked Apr 12 '16 20:04

Superbest


People also ask

How do you force a line break?

To do a line break in HTML, use the <br> tag. Simply place the tag wherever you want to force a line break. Since an HTML line break is an empty element, there's no closing tag. Below is an HTML file with a <p> and <br> element.

How do I force a newline in markdown?

According to the Markdown Guide, in order to force a new line, you need to add 2 spaces at the end of the line, followed by the return key.


1 Answers

Line break in Markdown is "two or more spaces at the end of the line".

like image 77
xof Avatar answered Sep 21 '22 06:09

xof