Aquesta és una revisió antiga del document


markdown

  • # : H1
    • alternativamente, ===== por debajo de la línea
  • ## : H2
    • alternativamente, —– por debajo de la líena
  • ###### : H6 (si, hay 6 #)
  • _texto_ : italic
  • **texto** : negrita
  • `texto` : monospace
  • ``` bloques de código ``` : bloques de código (varias líneas)
  • ~~texto~~ : tachado
  • inline:
    [El buscador de Google](http://www.google.cat/)
    • permite italica y negrita
    • las cabeceras pueden contener enlaces
  • reference:
    Here's [a link to something else][another place].
    Here's [yet another link][another-link].
    And now back to [the first link][another place].
    
    [another place]: www.github.com
    [another-link]: www.google.com
  • otro sistema?:
    <http://google.cat>
  • los enlaces a correos son ofuscados?
[El texto que quiera](#enlaceinterno)
<a name="enlaceinterno"></a>bla-bla-bla
  • los títulos asocian automaticamente un name o id (no está claro que)

/via: https://stackoverflow.com/questions/6695439/how-to-link-to-a-named-anchor-in-multimarkdown

  • imagen inline con texto alternativo:
    ![A representation of Octdrey Catburn](http://octodex.github.com/images/octdrey-catburn.jpg)
  • imagen referenciada con texto alternativo:
    ![The first father][First Father]
    
    ![The second first father][Second Father]
    
    [First Father]: http://octodex.github.com/images/founding-father.jpg
    [Second Father]: http://octodex.github.com/images/foundingfather_v2.png
  • añadir > delante de la línea
    • para varías líneas en el mismo bloque, añadir tantos > como haga falta
    • se le puede dar estilo
  • lista ordenada:
    1. Texto 1
    2. Texto 2
  • lista desordenada:
    - texto 1
    - texto 2
    
    * texto 1
    * texto 2
    
    + texto 1
    + texto 2
  • para crear sublistas indentadas, añadir 1 espacio
  • para insertar texto entre los elementos de una lista, dejar una línea de separación (entre los párrafos) y alinear el inicio de linea con el carácter de lista:
    1. Cut the cheese
     
     Make sure that the cheese is cut into little triangles.
    
    2. Slice the tomatoes
     
     Be careful when holding the knife.
     For more help on tomato slicing, see Thomas Jefferson's seminal essay _Tom Ate Those_.
  • salto línea simple : sin efecto
  • doble salto línea: hard break → sepáración de parágrafos
  • 2 espacios al final de línea: soft break (también para parágrafos en listas) → salto de línea, mismo parágrafo
  • ---
| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
  • mínimo 3 (como ejemplo 2)
  • los dos puntos indican la justificación
  • para insertar código, solo se ha de indentar
  • development/markdown/start.1534939213.txt.gz
  • Darrera modificació: 22/08/2018 05:00
  • per mate