Guia de sintaxe Markdown
Sintaxe essencial para seus documentos
Visão geral
Markdown é uma linguagem de marcação leve para texto formatado. Desde 2004 (John Gruber), uma das mais usadas no mundo.
Diferente de editores WYSIWYG: você adiciona sintaxe ao texto para indicar quais palavras ou frases devem ser formatadas.
Títulos
Coloque # antes de uma palavra ou frase. O número de # corresponde ao nível (ex.: ### para nível 3).
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
Parágrafos
Parágrafos são separados por linhas em branco.
It lets me write easily.
<p>It lets me write easily.</p>
I really like using Markdown.
It lets me write easily.
Quebras de linha
Termine uma linha com dois ou mais espaços e Enter.
And this is the second line.
And this is the second line.</p>
This is the first line.
And this is the second line.
Ênfase
Ênfase com negrito ou itálico.
Negrito
** ou __ antes e depois de uma palavra ou frase.
I just love bold text.
I just love bold text.
Itálico
* ou _ antes e depois de uma palavra ou frase.
The cat meows.
The cat meows.
Negrito e itálico
*** ou ___ antes e depois de uma palavra ou frase.
This text is really important.
This text is really important.
Citações
Coloque > antes de um parágrafo.
Dorothy followed her through many of the beautiful rooms in her castle.
Citações aninhadas
Coloque >> antes do parágrafo que quer aninhar.
>
>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
Listas
Listas ordenadas e não ordenadas.
Listas ordenadas
Números com ponto antes de cada linha. A lista deve começar em 1.
2. Second item
3. Third item
4. Fourth item
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ol>
- First item
- Second item
- Third item
- Fourth item
Listas não ordenadas
Comece as linhas com -, * ou +.
- Second item
- Third item
- Fourth item
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
</ul>
- First item
- Second item
- Third item
- Fourth item
Código
Coloque uma palavra ou frase entre backticks (`).
At the command prompt, type nano.
Blocos de código
Indente cada linha com 4 espaços ou 1 tab, ou use ``` antes e depois do bloco.
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}Linhas horizontais
Três ou mais ***, --- ou ___ em uma linha sozinhos.
Links
Texto do link em [ ], seguido da URL em ( ), ex.: [Duck Duck Go](https://duckduckgo.com).
My favorite search engine is Duck Duck Go.
Títulos para links
Opcionalmente um título entre aspas após a URL – aparece como tooltip.
My favorite search engine is Duck Duck Go.
Imagens
! seguido de [texto alt] e (URL ou caminho). Opcionalmente título entre aspas.

Escapando
Barra invertida \ antes de um caractere que seria usado para formatação, para exibi-lo literalmente.
* Without the backslash, this would be a bullet in an unordered list.
Caracteres que podem ser escapados
Barra invertida para escapar, por exemplo:
| \ | backslash |
| ` | backtick |
| * | asterisk |
| _ | underscore |
| { } | curly braces |
| [ ] | brackets |
| ( ) | parentheses |
| # | pound sign |
| + | plus sign |
| - | minus sign (hyphen) |
| . | dot |
| ! | exclamation mark |
| | | pipe |
Tabelas
Use --- para o cabeçalho de cada coluna e | para separar colunas.
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Alinhamento
Coloque : à esquerda, direita ou ambos os lados dos --- na linha de cabeçalho para alinhar.
| :--- | :---: | ---: |
| This | This | This |
| column | column | column |
| will | will | will |
| align | align | align |
| left | center | right |
| Esquerda | Centro | Direita |
|---|---|---|
| This | This | This |
| column | column | column |
| will | will | will |
| align | align | align |
| left | center | right |