Markdown - Block Elements

This tutorial covers Markdown format with examples. It convers syntax and examples for line breaks, paragraphs, Line return ..

There are different block elements in markdown.

  • line breaks
  • paragraphs
  • Line return

paragraph

Paragraph is group of lines separated by line break. Line break can be applied by adding new line or backslash \ symbol at end of line

 paragraph line 1

 paragraph line 2
 paragraph line 3

Generated Html code is

<p>paragraph line 1</p>
<p>paragraph line 2
paragraph line 3</p>

and output rendered on browser is

paragraph line 1

paragraph line 2 paragraph line 3

* item 1
* Item 2
- Item 3
- Item 4
+ item 5
+ item 5

Generated Html code is

<ul>
    <li>item 1</li>
    <li>Item 2</li>
</ul>
<ul>
    <li>Item 3</li>
    <li>Item 4</li>
</ul>
<ul>
    <li>Item 5</li>
    <li>Item 6</li>
</ul>

On a browser, you can see list as follows

  • item 1
  • Item 2
  • Item 3
  • Item 4
  • item 5
  • item 5