Referencia rápida

Hoja de trucos de Kramdown

Guía rápida para Kramdown en Ruby y Jekyll: sintaxis extendida, atributos personalizados (IAL), notas al pie, matemáticas y abreviaturas.

· Publicado

Kramdown es un analizador y conversor Markdown rápido y avanzado escrito en Ruby puro, y el motor por defecto en Jekyll.

Sintaxis de atributos personalizados (IAL)

Adjunta clases, IDs y atributos HTML arbitrarios directamente a elementos de bloque y en línea:

# Styled Header {: #main-title .heading-large style="color: blue;"}

A styled paragraph with an attribute.
{: .intro-paragraph}

[Download PDF](report.pdf){: .btn .btn-primary target="_blank"}

Notas al pie

Here is a statement that requires citation.[^note1]

[^note1]: This is the footnote text displayed at the bottom of the page.

Abreviaturas

*[HTML]: Hyper Text Markup Language
*[CSS]: Cascading Style Sheets

The HTML specification is maintained by WHATWG.

Expresiones matemáticas (KaTeX / MathJax)

Inline math: $$a^2 + b^2 = c^2$$

$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Referencias

Temas relacionados