Riferimento rapido

Cheat Sheet per Kramdown

Guida rapida per Kramdown in Ruby e Jekyll: sintassi estesa, attributi personalizzati (IAL), note a piè di pagina, formule matematiche e abbreviazioni.

· Pubblicato

Kramdown è un parser e convertitore Markdown veloce e avanzato scritto in puro Ruby, motore predefinito di Jekyll.

Sintassi attributi personalizzati (IAL)

Collega classi, ID e attributi HTML arbitrari direttamente a elementi blocco e inline:

# 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"}

Note a piè di pagina

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

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

Abbreviazioni

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

The HTML specification is maintained by WHATWG.

Espressioni matematiche (KaTeX / MathJax)

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

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

Riferimenti

Argomenti correlati