Especificación oficial

Esta chuleta sigue GitHub Flavored Markdown (GFM), el dialecto que usa GitHub, y mantiene compatibilidad con el núcleo de CommonMark. La gramática completa está en las especificaciones oficiales:

Encabezados

Usa el signo # para crear encabezados. Un # para el más grande y seis para el más pequeño.

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

Formato de texto

Negrita, cursiva, tachado y código en línea.

**Bold text** *Italic text* ***Bold and italic*** ~~Strikethrough text~~ `Inline code`

Bold text Italic text Bold and italic Strikethrough text Inline code

Enlaces

Crea hipervínculos con sintaxis en línea o de referencia.

[OpenAI](https://openai.com) [Link with title](https://example.com "Optional title") <https://automatic-link.com>

Imágenes

Incrusta imágenes con texto alternativo.

![Alt text](https://placehold.co/600x100/1e1e2e/cdcdff?text=Example+Image) ![Image with title](https://placehold.co/600x60/1e1e2e/cdcdff?text=Image+with+title "A placeholder image")

Alt text

Image with title

Código

Cómo marcar código en el marcado de Markdown: código en línea con comillas invertidas y bloques de código con tres comillas invertidas.

Here is some `inline code` in a sentence. ```javascript function hello(name) { console.log(`Hello, ${name}!`); } ``` ```python def greet(name): return f"Hello, {name}!" ```

Here is some inline code in a sentence.

function hello(name) {
  console.log(`Hello, ${name}!`);
}
def greet(name):
    return f"Hello, {name}!"

Listas

Listas ordenadas, sin orden y de tareas.

### Unordered list - Item one - Item two - Nested item - Another nested - Item three ### Ordered list 1. First step 2. Second step 1. Sub-step A 2. Sub-step B 3. Third step ### Task list - [x] Completed task - [ ] Pending task - [ ] Another task
Unordered list
  • Item one
  • Item two
    • Nested item
    • Another nested
  • Item three
Ordered list
  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step
Task list
  • Completed task
  • Pending task
  • Another task

Tablas

Crea tablas con barras verticales y guiones.

| Feature | Status | Notes | | --- | --- | --- | | Tables | ✅ | Pipe and dash syntax | | Alignment | ✅ | :--, :--:, --: | | Cell content | ✅ | Text, links, inline code | | Left | Center | Right | | :--- | :---: | ---: | | Left-aligned | Centered | Right-aligned | | 1 | 2 | 3 |
FeatureStatusNotes
Tables✅Pipe and dash syntax
Alignment✅:--, :--:, --:
Cell content✅Text, links, inline code
LeftCenterRight
Left-alignedCenteredRight-aligned
123

Citas en bloque

Cita bloques de texto con el carácter >.

> This is a blockquote. > It can span multiple lines. > > ## Heading inside a quote > - Lists work too > **Nested quotes:** > > Deeply nested quote > > > Even deeper

This is a blockquote. It can span multiple lines.

Heading inside a quote
  • Lists work too

Nested quotes:

Deeply nested quote

Even deeper

Líneas horizontales

Añade una línea horizontal con tres o más guiones, asteriscos o guiones bajos.

Text above --- *** ___ Text below

Text above




Text below

Tachado

Tacha texto con dobles tildes.

En los foros se usa a menudo [s]...[/s] (y también [b], [i]) para tachar texto: eso es BBCode, no Markdown. En Markdown el mismo efecto se escribe así: ~~text~~

This is ~~deleted text~~ still visible. ~~Entire paragraph that has been struck through for review purposes.~~ Mix of ~~strikethrough~~ and normal text.

This is deleted text still visible.

Entire paragraph that has been struck through for review purposes.

Mix of strikethrough and normal text.