# Markdown Riferimento Rapido

*Intestazioni, link, immagini, blocchi di codice, tabelle*

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

## Intestazioni

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

## Enfasi

### Grassetto e Corsivo

| Command | Description |
|---------|-------------|
| `*italic* or _italic_` | Testo corsivo |
| `**bold** or __bold__` | Testo grassetto |
| `***bold italic***` | Grassetto e corsivo |
| `~~strikethrough~~` | Testo barrato (GFM) |

## Liste

### Liste Non Ordinate

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

### Liste Ordinate

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

## Link e Immagini

| Command | Description |
|---------|-------------|
| `[text](url)` | Link inline |
| `[text](url "title")` | Link con titolo al passaggio del mouse |
| `[ref][id] / [id]: url` | Link in stile riferimento |
| `<https://example.com>` | Autolink |
| `![alt](image.png)` | Immagine |
| `![alt](img "title")` | Immagine con titolo |
| `[![alt](img)](url)` | Immagine con link |

## Codice

### Codice Inline e Blocchi Delimitati

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

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

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

*Specifica il linguaggio dopo ``` per la colorazione della sintassi*

### Blocco di Codice con Rientro

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

## Citazioni

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

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

## Tabelle (GFM)

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

*I : controllano l'allineamento — sinistra (predefinito), centro, destra*

## Liste di Attività (GFM)

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

## Separatori Orizzontali

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

*Tre o più trattini, asterischi o underscore*

## Escape

### Escape con Backslash

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

### Caratteri con Escape

| Command | Description |
|---------|-------------|
| `\  `  *  _` | Backslash, backtick, asterisco, underscore |
| `{}  []  ()` | Parentesi graffe, quadre, tonde |
| `#  +  -  .` | Hash, più, trattino, punto |
| `!  \|` | Punto esclamativo, pipe |
