Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add new line in Markdown presentation?

How to add new line in Markdown presentation?

I mean, something like \newline in TeX.

like image 851
max04 Avatar asked Oct 17 '15 21:10

max04


People also ask

How do you insert a new line in Markdown?

In a Markdown file or widget, enter two spaces before the line break, and then select Enter to begin a new paragraph. Example - Markdown file or widget: Add two spaces before the end of the line, and then select **Enter**.

How do you start a new paragraph in Markdown?

A paragraph is consecutive lines of text with one or more blank lines between them. For a line break, add either a backslash \ or two blank spaces at the end of the line. paragraph.

How do I make a horizontal line in Markdown?

You can create a horizontal rule ( <hr /> ) by placing 3 or more hyphens, asterisks, or underscores on a single line by themselves.


1 Answers

See the original markdown specification (bold mine):

The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a <br /> tag.

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

like image 105
Chris Avatar answered Nov 04 '22 10:11

Chris