Herramientas de usuario

Herramientas del sitio


es:manual:items:markdown

¡Esta es una revisión vieja del documento!


Markdown

Markdown es una forma sencilla de escribir texto estructurado que puede convertirse directamente al lenguaje HTML, que es el que usan las páginas web. A diferencia de HTML, Markdown es simple y no usa etiquetas de marcado, si no simples caracteres que indican el formato, de manera que resulta mas fácil y rápido escribir un texto. Por ejemplo, para crear una tabla en Markdown podría escribirse simplemente:

| Left-Aligned  | Center Aligned  | Right Aligned |
|:------------- |:---------------:| -------------:|
| Row 1         | **Bold**        | Cell 3        |
| Row 2         | *Italic*        | Cell 6        |
| Row 3         | ~~Strike~~      | Cell 9        |
| Row 3         | [Link](dot.com) | Cell 9        |

y para escribir lo mismo en HTML habría que escribir el siguiente código:

<table>
<thead>
<tr class="header">
<th style="text-align: left;">Left-Aligned</th>
<th style="text-align: center;">Center Aligned</th>
<th style="text-align: right;">Right Aligned</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Row 1</td>
<td style="text-align: center;"><strong>Bold</strong></td>
<td style="text-align: right;">Cell 3</td>
</tr>
<tr class="even">
<td style="text-align: left;">Row 2</td>
<td style="text-align: center;"><em>Italic</em></td>
<td style="text-align: right;">Cell 6</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Row 3</td>
<td style="text-align: center;"><del>Strike</del></td>
<td style="text-align: right;">Cell 9</td>
</tr>
<tr class="even">
<td style="text-align: left;">Row 3</td>
<td style="text-align: center;"><a href="dot.com">Link</a></td>
<td style="text-align: right;">Cell 9</td>
</tr>
</tbody>
</table>

Evidentemente es mucho mas fácil e intuitivo usar Markdown, sobre todo

es/manual/items/markdown.1737366147.txt.gz · Última modificación: por root

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki