How to add new line in Markdown presentation?
I mean, something like \newline
in TeX.
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**.
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.
You can create a horizontal rule ( <hr /> ) by placing 3 or more hyphens, asterisks, or underscores on a single line by themselves.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With