Markdown

Assim como o HTML, a linguagem markdown é uma linguagem de marcação, mas bem mais leve e mais fácil de ler e escrever.

A sintaxe de markdown consegue fazer as principais funcionalidades de HTML, mas não todas. Se você usar apenas markdown para escrever seu site, você poderá escrever muito (MUITO) mais rápido, e se precisar usar alguma funcionalidade que só tem em HTML, é só usar HTML onde você precisar.

Abaixo alguns comandos em markdown e seu efeito correspondente em HTML.

(tabela retirada da wikipédia)

Text using Markdown syntax Corresponding HTML produced by a Markdown processor Text viewed in a browser
Heading
=======

Sub-heading
-----------

# Alternative heading

## Alternative sub-heading

Paragraphs are separated
by a blank line.

Two spaces at the end of a line
produce a line break.

<h1>Heading</h1>

<h2>Sub-heading</h2>

<h1>Alternative heading</h1>

<h2>Alternative sub-heading</h2>

<p>Paragraphs are separated
by a blank line.</p>

<p>Two spaces at the end of a line<br />
produce a line break.</p>

Heading
Sub-heading
Alternative heading
Alternative sub-heading

Paragraphs are separated by a blank line.

Two spaces at the end of a line
produce a line break.

Text attributes _italic_, **bold**, `monospace`.

Horizontal rule:

---

<p>Text attributes <em>italic</em>, <strong>bold</strong>, <code>monospace</code>.</p>

<p>Horizontal rule:</p>

<hr />

Text attributes italic, bold, monospace.

Horizontal rule:


Bullet lists nested within numbered list:

1. fruits
apple
banana
2. vegetables
- carrot
- broccoli

<p>Bullet lists nested within numbered list:</p>

<ol>
<li>fruits <ul>
<li>apple</li>
<li>banana</li>
</ul></li>
<li>vegetables <ul>
<li>carrot</li>
<li>broccoli</li>
</ul></li>
</ol>

Bullet lists nested within numbered list:
  1. fruits
    • apple
    • banana
  2. vegetables
    • carrot
    • broccoli
A [link](http://example.com).

![Image](Icon-pictures.png "icon")

> Markdown uses email-style
characters for blockquoting.
>
> Multiple paragraphs need to be prepended individually.

Most inline <abbr title="Hypertext Markup Language">HTML</abbr> tags are supported.

<p>A <a href="http://example.com">link</a>.</p>

<p><img alt="Image" title="icon" src="Icon-pictures.png" /></p>

<blockquote>
<p>Markdown uses email-style characters for blockquoting.</p>
<p>Multiple paragraphs need to be prepended individually.</p>
</blockquote>

<p>Most inline <abbr title="Hypertext Markup Language">HTML</abbr> tags are supported.</p>

A link.

Image

Markdown uses email-style characters for blockquoting.

Multiple paragraphs need to be prepended individually.

Most inline HTML tags are supported.

Exemplo de tabela

Para fazer uma tabela você pode usar

| Nome      | Idade | Peso |
|:---:      |:---:  |:---: |
brutinho    |10     |5.5
oggi        |5      |3.8
pato donald |30     |12.1
francis     |7      |2.0

Para ter o resultado

Nome Idade Peso
brutinho 10 5.5
oggi 5 3.8
pato donald 30 12.1
francis 7 2.0