# Referencia Rápida de Markdown

*Encabezados, enlaces, imágenes, bloques de código, tablas*

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

## Encabezados

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

## Énfasis

### Negrita e Cursiva

| Command | Description |
|---------|-------------|
| `*italic* or _italic_` | Texto en cursiva |
| `**bold** or __bold__` | Texto en negrita |
| `***bold italic***` | Negrita y cursiva |
| `~~strikethrough~~` | Tachado (GFM) |

## Listas

### Listas no 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
```

## Enlaces e imágenes

| Command | Description |
|---------|-------------|
| `[text](url)` | Enlace en línea |
| `[text](url "title")` | Enlace con título al pasar el cursor |
| `[ref][id] / [id]: url` | Enlace estilo referencia |
| `<https://example.com>` | Autoenlace |
| `![alt](image.png)` | Imagen |
| `![alt](img "title")` | Imagen con título |
| `[![alt](img)](url)` | Imagen con enlace |

## Código

### En línea y bloques delimitados

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

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

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

*Especificar el lenguaje después de ``` para resaltado de sintaxis*

### Bloque de código con sangría

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

## Citas en bloque

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

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

## Tablas (GFM)

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

*`:` controla la alineación — izquierda (por defecto), centro, derecha*

## Listas de tareas (GFM)

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

## Líneas horizontales

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

*Tres o más guiones, asteriscos o guiones bajos*

## Escape

### Escapes con barra invertida

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

### Caracteres escapables

| Command | Description |
|---------|-------------|
| `\  `  *  _` | Barra invertida, acento grave, asterisco, guión bajo |
| `{}  []  ()` | Llaves, corchetes, paréntesis |
| `#  +  -  .` | Almohadilla, más, guión, punto |
| `!  \|` | Exclamación, barra vertical |
