Guia de sensetaxi Markdown
Sensetaxi essencial para formatear documents
Resumen
Markdown es un lenguaje de marcado ligero para añadir format a documents de text plano. Creado por John Gruber en 2004, es uno de los més usados del món.
Markdown no es como un editor WYSIWYG (p. ej. Word), on formateas con botones y ves los canvis al instante. En Markdown añades sensetaxi al text para indicar què debe verse distinto.
Capçaleras
Para crear un capçalera, pon almohadillas (#) delante. El número de # corresponde al nivel (### = nivel 3).
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
Párrafos
Para crear párrafos, separa líneas de text con una línea en blanco.
It lets me write easily.
<p>It lets me write easily.</p>
I really like using Markdown.
It lets me write easily.
Saltos de línea
Para un salto de línea, termina la línea con dos o més espacios y pulsa Intro.
And this is the second line.
And this is the second line.</p>
This is the first line.
And this is the second line.
Énfasis
Puedes dar énfasis en negreta o cursiva.
Negreta
Para negreta, usa dos asteriscos (**) o guiones sotas (__) abans y després.
I just love bold text.
I just love bold text.
Cursiva
Para cursiva, usa un asterisco (*) o guión sota (_) abans y després.
The cat meows.
The cat meows.
Negreta y cursiva
Para ambos, usa tres asteriscos (***) o guiones sotas (___) abans y després.
This text is really important.
This text is really important.
Citas
Para una cita, pon > delante del párrafo.
Dorothy followed her through many of the beautiful rooms in her castle.
Citas anidadas
Las cites pueden anidarse. Usa >> delante del párrafo anidado.
>
>> 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.
Llistas
Puedes organizar elements en llistas orderess o sense orden.
Llistas orderess
Usa números seguidos de punto (1. 2. 3.). El orden numérico no importa, pero empieza por 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
Llistas sense orden
Usa guiones (-), asteriscos (*) o més (+) delante de cada element.
- 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
Codi
Para marcar codi, enciérralo en comillas invertidas (`).
At the command prompt, type nano.
Bloques de codi
Indenta con 4 espacios o 1 tabulación, o usa triple comilla (```) abans y després del bloque.
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}Líneas horizontales
Usa tres o més asteriscos (***), guiones (---) o guiones sotas (___) en una línea sola.
Enllaçs
Enllaçs: [text](URL). Ej.: [Duck Duck Go](https://duckduckgo.com).
My favorite search engine is Duck Duck Go.
Añadir títulos
Puedes añadir un título al enllaç entre comillas tras la URL. Aparece como tooltip al pasar el ratón.
My favorite search engine is Duck Duck Go.
Imágenes
Imatge: . Opcionalmente, un título entre comillas tras la URL.

Escapar caracteres
Para mostrar un carácter especial literal, pon una barra invertida (\) delante.
* Without the backslash, this would be a bullet in an unordered list.
Caracteres que puedes escapar
Puedes escapar aquests caracteres con \:
| \ | backslash |
| ` | backtick |
| * | asterisk |
| _ | underscore |
| { } | curly braces |
| [ ] | brackets |
| ( ) | parentheses |
| # | pound sign |
| + | plus sign |
| - | minus sign (hyphen) |
| . | dot |
| ! | exclamation mark |
| | | pipe |
Taulas
Usa tres o més guiones (---) per a l' capçalera de cada columna y tuberías (|) para separar columnas.
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Alineació
Alinea a esquerra, dreta o centre añadiendo dos puntos (:) a la esquerra, dreta o ambos lados de los guiones del capçalera.
| :--- | :---: | ---: |
| This | This | This |
| column | column | column |
| will | will | will |
| align | align | align |
| left | center | right |
| Esquerra | Centre | Dreta |
|---|---|---|
| This | This | This |
| column | column | column |
| will | will | will |
| align | align | align |
| left | center | right |