Notas de Luis

Markdown sintaxis específica de pandoc

Títulos

  # Título 1
  ## Título 2
  ### Título 3
  #### Título 4
  ##### Título 5
  ###### Título 6

Formateado de texto

  • Texto normal
  • *prueba énfasis*
  • _prueba énfasis_
  • prueba negrita
  • prueba negrita
  • *prueba negrita+énfasis*
  • Esto es un parrafo en monospace.
  • ~~tachado~~
  • <u>subrayado</u>
      Esto es codigo
  • Texto normal
  • *prueba énfasis*
  • _prueba énfasis_
  • prueba negrita
  • prueba negrita
  • *prueba negrita+énfasis*
  • Esto es un parrafo en monospace.
  • ~~tachado~~
  • <u>subrayado</u>
  Esto es codigo

Párrafos

Esto es un parrafo normal y corriente. Esto es un parrafo normal y corriente. Esto es un parrafo normal y corriente. Esto es un parrafo normal y corriente.

Separación por una línea en blanco.

  Esto es un parrafo dividido,\
  -- con \\ -- al final de linea.

Esto es un parrafo dividido,\

  • - con
    – al final de linea.

Codigo HTML insertado

For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.

The only restrictions are that block-level HTML elements (div, table, pre, p), etc. must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces. Markdown is smart enough not to add extra (unwanted) <p> tags around HTML block-level tags.

<mark>texto resaltado</mark>

<mark>texto resaltado</mark>

For example, to add an HTML table to a Markdown article:

  <table>
      <tr>
          <td>Foo</td> <td>Foo</td> <td>Foo</td>
      </tr>
  </table>

This is a regular paragraph.

<table>

  <tr>
      <td>Foo</td> <td>Foo</td> <td>Foo</td>
  </tr>

</table>

This is another regular paragraph.

Blockquotes

  > This is a blockquote text asdfj kasjfk ajsdf kjasdfk jasdfkjas dfkjsd
  > fkjsadkfj sadfjaskf jksajf skdjfaksfjskfjfsadkjsadfkjasdfkjasdkjasfd
  > This  is also valid.  alsdfj alksfj salkfjasdflkjas  dflkasfj lkasfj asdl  f j
  kasd flkjasdf lkjasdflkasjfdlkasfjkalsjf alskjfaslkf jaslkfjas lkfjas ldfjkasdfl
  kjasdflkj asdflkjasdflkjasdflkasj fdals
  > Blockquotes can also be nested
  
  > > Nested
  > Not nested
This is a blockquote text asdfj kasjfk ajsdf kjasdfk jasdfkjas dfkjsd
fkjsadkfj sadfjaskf jksajf skdjfaksfjskfjfsadkjsadfkjasdfkjasdkjasfd
This is also valid. alsdfj alksfj salkfjasdflkjas dflkasfj lkasfj asdl f j

kasd flkjasdf lkjasdflkasjfdlkasfjkalsjf alskjfaslkf jaslkfjas lkfjas ldfjkasdfl kjasdflkj asdflkjasdflkjasdflkasj fdals

Blockquotes can also be nested
Nested
Not nested

Código

Inserción de código. Monospace. Usualmente enmarcado. Indentado o con tres

backticks al principio o al final.

  #!/usr/bin/perl
  print "ok";
  exit;
    prueba prueba
prueba prueba

Código inline.

  This is normal text and code. ''# perl -e ' print " ok "''' Normal text again.

This is normal text and code. # perl -e ' print “ ok ”' Normal text again.

Listas

No ordenadas: Usando *, + ó - como prefijo.

Ordenadas: Usando un número (cualquiera) y un punto como prefijo.

List items may consist of multiple paragraphs. Each subsequent paragraph in a list item must be indented by either 4 spaces or one tab:

  • This is a list item with two paragraphs. Lorem ipsum dolor

sit amet, consectetuer adipiscing elit. Aliquam hendrerit

  mi posuere lectus.
  Vestibulum enim wisi, viverra nec, fringilla in, laoreet
  vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
  sit amet velit.
  • Suspendisse id sem consectetuer libero luctus adipiscing.
  • lista
    • subnivel de lista
      1. subnivel de lista
  • lista

The four-space rule ###

A list item may contain multiple paragraphs and other block-level content. However, subsequent paragraphs must be preceded by a blank line and indented four spaces or a tab. The list will look better if the first paragraph is aligned with the rest:

  • First paragraph.
      Continued.
  • Second paragraph. With a code block, which must be indented

eight spaces:

          { code }

List items may include other lists. In this case the preceding blank line is optional. The nested list must be indented four spaces or one tab:

  • fruits

+ apples

  1. macintosh
  2. red delicious

+ pears

      + peaches
  * vegetables
      + broccoli
      + chard

As noted above, Markdown allows you to write list items “lazily,” instead of indenting continuation lines. However, if there are multiple paragraphs or other blocks in a list item, the first line of each must be indented.

  + A lazy, lazy, list
  item.
  + Another one; this looks
  bad but is legal.
      Second paragraph of second
  list item.

Note: Although the four-space rule for continuation paragraphs comes from the official [Markdown syntax guide], the reference implementation, Markdown.pl, does not follow it. So pandoc will give different results than Markdown.pl when authors have indented continuation paragraphs fewer than four spaces.

The [Markdown syntax guide] is not explicit whether the four-space rule applies to *all* block-level content in a list item; it only mentions paragraphs and code blocks. But it implies that the rule applies to all block-level content (including nested lists), and pandoc interprets it that way.

[Markdown syntax guide]:
  http://daringfireball.net/projects/markdown/syntax#list

Tabla

Definition List

  Apple
  :   Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
  :   An american computer company.
  :   A pp less/equal.
  Orange
  :   The fruit of an evergreen tree of the genus Citrus.
  :   Telecommunications company.
  :   Holland football national team color.

Apple : Pomaceous fruit of plants of the genus Malus in the family Rosaceae. : An american computer company. : A pp less/equal.

Orange : The fruit of an evergreen tree of the genus Citrus. : Telecommunications company. : Holland football national team color.

FootNote

  Here is some text containing a footnote.[^samplefootnote].
  Esta es otra nota[^nota], y ésta es otra[^notita].

Here is some text containing a footnote.[^somesamplefootnote]. Esta es otra nota[^notaut], y ésta es otra[^nota4].

Las notas se definen de la siguiente manera:

  [\^somesamplefootnote]:  Here is  the text  of the  footnotes. It  can be  placed
  anywhere in the text. It will be rendered at the end of the document.
  [\^notaut]: Ut queant laxus, resonare fibris.
  [\^nota4]:  El feliz  murciélago comía  cardillo y  kiwi. El  feliz murciélago
  comía cardillo  y kiwi. El  feliz murciélago  comía cardillo y  kiwi.El feliz
  murciélago comía cardillo y kiwi.

[^somesamplefootnote]: Here is the text of the footnotes. It can be placed anywhere in the text. It will be rendered at the end of the document.

[^notaut]: Ut queant laxus, resonare fibris.

[^nota4]: El feliz murciélago comía cardillo y kiwi. El feliz murciélago comía cardillo y kiwi. El feliz murciélago comía cardillo y kiwi.El feliz murciélago comía cardillo y kiwi.

Horizontal Rules

Three or more dashes or asterisks:

  1. - - -

Enlaces.

Enlace simple.

  [[http://www.google.es "Texto de ayuda al pasar el cursor"|Google]]

Google

Otra forma de poner enlaces simples. Poniendolos entre '<' y '>'.

  simple link: <http://www.google.com>

simple link: <http://www.google.com>

  Luís M. Arocha Hernández <lah.data@gmail.com>

Luís M. Arocha Hernández lah.data@gmail.com

Reference-style labels (titles are optional):

  An [example][id]. Then, **anywhere else in the doc**, define the link:
  [id]: http://example.com/  "Title"

An [example][id]. Then, anywhere else in the doc, define the link:

[id]: http://example.com/ “Title”

IMAGENES

Inline (titles and alt are optional):

{{/path/img.jpg "Title"|alt text}}

Alt Caution

Alt Ok

Reference-style:

![alt text][id]
[id]: /url/to/img.jpg "Title" width=nnpx height=nnpx

![Alt NOOK][NOOKIMG]

[NOOKIMG]: https://arocha.cf/images/icons/icon-nook.png “Nook” {width=200px}

Imagen que enlaza a algo

  [[http://google.es|{{https://arocha.cf/images/icons/pensando.png|Enlace  a  Google}}]]

Enlace  a Google Nulla ligula enim, volutpat vitae orci vel, dictum sodales felis. Aenean efficitur augue quis magna vehicula molestie. Proin in aliquet magna. Aliquam auctor a ante id finibus.

Marcadores para inserción automática de imágenes

En el programa de preprocesamiento prepandoc he incluido la conversión de los marcadores que aparecen debajo en su equivalente gráfico, incluyendo unos iconos.

Los símbolos < y > indican si las imágenes se definen como flotantes alineadas a izquierda y derecha respectivamente. _He tenido que escribir un espacio de más en cada símbolo para poder escribir los marcadores sin que prepandoc lo transforme_.

{ <VIP} { <WARNING} { <DELETE} { <NOTE} { <OK} { <NOOK} { <:-)} { <:-(}
{ VIP>} { WARNING>} { DELETE>} { NOTE>} { OK>} { NOOK>} { :-)>} { :-(>}
{ VIP}  { WARNING}  { DELETE}  { NOTE}  { OK}  { NOOK}  { :-)}  { :-(}

Texto insertado por prepandoc:

<img style="float:left;"src="https://arocha.cf/images/icons/icon-important.png" title="Important">
<img style="float:left;"src="https://arocha.cf/images/icons/icon-caution.png" title="Warning">
<img style="float:left;"src="https://arocha.cf/images/icons/icon-del.png">
<img style="float:left;"src="https://arocha.cf/images/icons/icon-note.png" title="Note">
<img style="float:left;"src="https://arocha.cf/images/icons/icon-ok.png" title="OK">
<img style="float:left;"src="https://arocha.cf/images/icons/icon-nook.png" title="KO">
<img style="float:left;"src="https://arocha.cf/images/icons/smiley-happy.png">
<img style="float:left;"src="https://arocha.cf/images/icons/smiley-sad.png">

<img style="float:right;"src="https://arocha.cf/images/icons/icon-important.png" title="Important">
<img style="float:right;"src="https://arocha.cf/images/icons/icon-caution.png" title="Warning">
<img style="float:right;"src="https://arocha.cf/images/icons/icon-del.png">
<img style="float:right;"src="https://arocha.cf/images/icons/icon-note.png" title="Note">
<img style="float:right;"src="https://arocha.cf/images/icons/icon-ok.png" title="OK">
<img style="float:right;"src="https://arocha.cf/images/icons/icon-nook.png" title="KO">
<img style="float:right;"src="https://arocha.cf/images/icons/smiley-happy.png">
<img style="float:right;"src="https://arocha.cf/images/icons/smiley-sad.png">

<img src="https://arocha.cf/images/icons/icon-important.png" title="Important">
<img src="https://arocha.cf/images/icons/icon-caution.png" title="Warning">
<img src="https://arocha.cf/images/icons/icon-del.png">
<img src="https://arocha.cf/images/icons/icon-note.png" title="Note">
<img src="https://arocha.cf/images/icons/icon-ok.png" title="OK">
<img src="https://arocha.cf/images/icons/icon-nook.png" title="KO">
<img src="https://arocha.cf/images/icons/smiley-happy.png">
<img src="https://arocha.cf/images/icons/smiley-sad.png">

Imágenes resultantes:

{<VIP} {<WARNING} {<DELETE} {<NOTE} {<OK} {<NOOK} {<:-)} {<:-(} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ut metus efficitur, consectetur orci sit amet, mattis metus. Sed ut gravida ligula, nec tincidunt nibh. Pellentesque rutrum eu sem eu sagittis. Nullam vel ligula felis. In lorem lorem, hendrerit et orci quis, elementum condimentum neque. Nulla congue condimentum magna nec condimentum. Ut ut nibh elit. Donec gravida, mauris quis facilisis tincidunt, eros risus tincidunt velit, non tempor lorem augue id magna. Integer laoreet velit euismod dapibus aliquam. Mauris fringilla, ex non molestie tincidunt, lectus mi gravida velit, ut rhoncus felis ligula ut nulla.

{VIP>} {WARNING>} {DELETE>} {NOTE>} {OK>} {NOOK>} {:-)>} {:-(>} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ut metus efficitur, consectetur orci sit amet, mattis metus. Sed ut gravida ligula, nec tincidunt nibh. Pellentesque rutrum eu sem eu sagittis. Nullam vel ligula felis. In lorem lorem, hendrerit et orci quis, elementum condimentum neque. Nulla congue condimentum magna nec condimentum. Ut ut nibh elit. Donec gravida, mauris quis facilisis tincidunt, eros risus tincidunt velit, non tempor lorem augue id magna. Integer laoreet velit euismod dapibus aliquam. Mauris fringilla, ex non molestie tincidunt, lectus mi gravida velit, ut rhoncus felis ligula ut nulla.

{VIP} {WARNING} {DELETE} {NOTE} {OK} {NOOK} {:-)} {:-(} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ut metus efficitur, consectetur orci sit amet, mattis metus. Sed ut gravida ligula, nec tincidunt nibh. Pellentesque rutrum eu sem eu sagittis. Nullam vel ligula felis. In lorem lorem, hendrerit et orci quis, elementum condimentum neque. Nulla congue condimentum magna nec condimentum. Ut ut nibh elit. Donec gravida, mauris quis facilisis tincidunt, eros risus tincidunt velit, non tempor lorem augue id magna. Integer laoreet velit euismod dapibus aliquam. Mauris fringilla, ex non molestie tincidunt, lectus mi gravida velit, ut rhoncus felis ligula ut nulla.

Más allá de markdown

computing/coding/markup/markdown.txt · Última modificación: por 127.0.0.1