# Referência Rápida de Markdown

*Títulos, links, imagens, blocos de código, tabelas*

> Source: CommonMark Spec (commonmark.org) · MIT

## Títulos

```
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
```

## Ênfase

### Negrito e Itálico

| Command | Description |
|---------|-------------|
| `*italic* or _italic_` | Texto em itálico |
| `**bold** or __bold__` | Texto em negrito |
| `***bold italic***` | Negrito e itálico |
| `~~strikethrough~~` | Tachado (GFM) |

## Listas

### Listas Não Ordenadas

```
- Item one
- Item two
  - Nested item
  - Another nested
- Item three
```

### Listas Ordenadas

```
1. First item
2. Second item
   1. Nested ordered
   2. Another nested
3. Third item
```

## Links e Imagens

| Command | Description |
|---------|-------------|
| `[text](url)` | Link inline |
| `[text](url "title")` | Link com título ao passar o mouse |
| `[ref][id] / [id]: url` | Link estilo referência |
| `<https://example.com>` | Autolink |
| `![alt](image.png)` | Imagem |
| `![alt](img "title")` | Imagem com título |
| `[![alt](img)](url)` | Imagem com link |

## Código

### Inline e Blocos Cercados

```
Use `inline code` in a sentence.

```python
def greet(name):
    return f"Hello, {name}!"
```

```javascript
const greet = (name) => `Hello, ${name}!`;
```
```

*Especifique a linguagem após ``` para destaque de sintaxe*

### Bloco de Código com Recuo

```
Indent 4 spaces
for a code block
(no syntax highlighting)
```

## Citações

```
> This is a blockquote.
>
> It can span multiple paragraphs.

> Nested blockquotes:
>> Second level
>>> Third level
```

## Tabelas (GFM)

```
| Left   | Center  | Right  |
|--------|:-------:|-------:|
| cell 1 | cell 2  | cell 3 |
| cell 4 | cell 5  | cell 6 |
```

*: controla o alinhamento -- esquerdo (padrão), centro, direito*

## Listas de Tarefas (GFM)

```
- [x] Completed task
- [ ] Incomplete task
- [ ] Another to-do
```

## Linhas Horizontais

```
---
***
___
```

*Três ou mais hifens, asteriscos ou sublinhados*

## Escape

### Escapes com Barra Invertida

```
\*not italic\*
\# not a heading
\[not a link\]
```

### Caracteres com Escape

| Command | Description |
|---------|-------------|
| `\  `  *  _` | Barra invertida, backtick, asterisco, sublinhado |
| `{}  []  ()` | Chaves, colchetes, parênteses |
| `#  +  -  .` | Sustenido, mais, hífen, ponto |
| `!  \|` | Exclamação, barra vertical |
