Promemoria

markdown Fonte: Wikipedia

Il markdown che uso su noblogo con l'aggiunta di un po' di html per quello che, con il markdown, non riesco ad ottenere.

1. Formattazione

– Header (sintassi):

# This is the biggest header (h1) ## This is still a big header (h2) ### This is a smaller header (h3) #### This is a smaller header (h4) ##### This is a smaller header (h5) ###### This is the smallest header you can make (h6)

– Header (esempio):

This is the biggest header (h1)

This is still a big header (h2)

This is a smaller header (h3)

This is a smaller header (h4)

This is a smaller header (h5)
This is the smallest header you can make (h6)

– Grassetto (sintassi):

Lorem **ipsum dolor** sit amet

– Grassetto (esempio):

Lorem ipsum dolor sit amet


– Corsivo (sintassi):

Lorem _ipsum dolor_ sit amet

– Corsivo (esempio):

Lorem ipsum dolor sit amet


– Corsivo e grassetto (sintassi):

_Lorem ipsum dolor sit **amet, consectetur** adipiscing elit._

– Corsivo e grassetto (esempio):

Lorem ipsum dolor sit amet, consectetur adipiscing elit.


– Barrato (sintassi):

Lorem ~~iuppssum~~ ipsum dolor sit amet

– Barrato (esempio):

Lorem iuppssum ipsum dolor sit amet

2. Liste

– Lista puntata (sintassi):

* elem 1 * elem 1.1 * elem 1.2 * elem 2 * elem 3

– Lista puntata (esempio):


– Lista numerata (sintassi):

1. elem 1 1. elem 2 1. elem 2.1 1. elem 2.2 1. elem 1.2

– Lista numerata (esempio):

  1. elem 1
  2. elem 2
    1. elem 2.1
    2. elem 2.2
  3. elem 1.2

– Immagine (sintassi):

![testo](https://url)

– Link (sintassi):

[testo](https://url)

4. Citazioni e syntax highlighting

– Quotes (sintassi):

> Duis suscipit ex id leo tristique sagittis. > Sed vitae volutpat erat, at vestibulum dolor.


– Codice inline (sintassi):

`ps -ef | grep python`

– Codice inline (esempio):

ps -ef | grep python


```bash #!/usr/bin/bash ... # Modifica la chiave privata KEY_MOD=“${KEY}” echo

while true; do echo -en “Chiave privata: ${KEY}\nInserisci la nuova chiave privata: “; read KEY_MOD if [[ -z $KEY_MOD ]]; then KEY_MOD=“${KEY}”; break elif [[ ! $(echo “${KEY_MOD}” | oathtool -b – 2>/dev/null) ]]; then err_msg “${INVALID_KEY_ERR}” 0; KEY_MOD=“${KEY}” else break fi done ... ```

– Syntax highlighting (esempio):

#!/usr/bin/bash
...
# Modifica la chiave privata
    KEY_MOD="${KEY}"
    echo

    while true; do
        echo -en "Chiave privata: ${KEY}\nInserisci la nuova chiave privata: "; read KEY_MOD
        if [[ -z $KEY_MOD ]]; then
            KEY_MOD="${KEY}"; break
        elif [[ ! $(echo "${KEY_MOD}" | oathtool -b - 2>/dev/null) ]]; then
            err_msg "${INVALID_KEY_ERR}" 0; KEY_MOD="${KEY}"
        else
            break
        fi
    done
...

5. Misc

– Elenco di riferimenti (sintassi):

**Riferimenti:**

<small>

1. <i><a href=“https:/url_riferimento1”>riferimento1</a></i> 1. <i><a href=“https:/url_riferimento2”>riferimento2</a></i> 1. <i><a href=“https:/url_riferimento3”>riferimento3</a></i> ... </small>

– Elenco di riferimenti (esempio):

Elenco di link:

  1. riferimento1
  2. riferimento2
  3. riferimento3 ...


– TOC (sintassi):

1. <a href=”#anchor1”>Capitolo 1</a> 2. <a href=”#anchor12”>Capitolo 1.2</a> 1. <a href=”#anchor2”>Capitolo 2</a> 2. <a href=”#anchor21”>Capitolo 2.1</a> 2. <a href=”#anchor22”>Capitolo 2.2</a> 2. <a href=”#anchor22”>Capitolo 2.3</a> 1. <a href=”#anchor3”>Capitolo 3</a> ... ## <a id=“anchor1”>Capitolo 1</a> ### <a id=“anchor12”>Capitolo 1.2</a> ## <a id=“anchor2”>Capitolo 2</a> ### <a id=“anchor21”>Capitolo 2.1</a> ### <a id=“anchor22”>Capitolo 2.2</a> ### <a id=“anchor23”>Capitolo 2.3</a> ## <a id=“anchor3”>Capitolo 3</a>

– TOC (esempio):

  1. Capitolo 1
    1. Capitolo 1.2
  2. Capitolo 2
    1. Capitolo 2.1
    2. Capitolo 2.2
    3. Capitolo 2.3
  3. Capitolo 3

...

Capitolo 1

Capitolo 1.2

Capitolo 2

Capitolo 2.1

Capitolo 2.2

Capitolo 2.3

Capitolo 3


– Footnotes (sintassi):

Lorem ipsum dolor sit amet, consectetur adipiscing elit. <small><a id=“link_nota_1” title=“vai alla nota 1” href=”#nota_1”><sup><strong> [1] </strong></sup></a></small>Proin lacinia mi tellus, ut cursus nibh bibendum eu.

Cras pretium ultrices scelerisque. In ultricies libero in vehicula semper.<small><a id=“link_nota_2” title=“vai alla nota 2” href=”#nota_2”><sup><strong> [2] </strong></sup></a></small>Etiam quam nisi, dapibus ac tempor vel, vestibulum eu diam.

...

**Note:**

1. Questa è la nota 1<a id=“nota_1” title=“torna su” <sup><b> [↵] </b></sup></a> 1. E questa è la nota 2<a id=“nota_2” title=“torna su” href=”#link_nota_2”><sup><b> [↵] </b></sup></a>

</small>

– Footnotes (esempio):

Lorem ipsum dolor sit amet, consectetur adipiscing elit. [1] Proin lacinia mi tellus, ut cursus nibh bibendum eu.

Cras pretium ultrices scelerisque. In ultricies libero in vehicula semper. [2] Etiam quam nisi, dapibus ac tempor vel, vestibulum eu diam. ... Note:

  1. Questa è la nota 1 [↵]
  2. E questa è la nota 2 [↵]


– Aggiunta tags (sintassi):

#tag1 #tag2 #altroTag

– Aggiunta tags (esempio):

#tag1 #tag2 #altroTag


– Leggitutto (sintassi):

<!--more-->


Separatore orizzontale (sintassi):

---

Note:

  1. https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers [↵]

#markdown