Markdown is a simple markup language with plain-text formatting and structure. Markdown provides similar features to the HTML with simpler tags. As a markup language, the new line or end of the line is expressed differently than the regular plain-text end of the line like \n, etc. In this post, we will take a look at how to add a new line in a markdown document.
Use <br /> Tag
HTML and Markdown are related to markup languages and as a newcomer, the Markdown may use or copy some HTML tags. In HTML <br> is used to add a new line which is a short form of break. The markdown also uses the <br /> tag in order to add a new line.
First line <br /> Second line <br /> Third line
Use \ Slash
The \ slash is another option or alternative to create or add new line markup language.
First line \ Second line \ Third line
Use Two Space
Markdown also provides a very strange way to add a new line where two spaces at the end of the line will create and jump to the new line. In the following example, the first and second lines have two spaces at the end which will cause new lines in the presentation.
First line Second line Third line