Snabbreferens

Kramdown fusklapp

Snabbreferens för Kramdown i Ruby & Jekyll: utökad syntax, anpassade attribut (IAL), fotnoter, matematik och förkortningar.

· Publicerad

Kramdown är en snabb, avancerad Markdown-tolkare och -konverterare skriven i ren Ruby och standardmotor i Jekyll.

Anpassad attributsyntax (IAL)

Lägg till klasser, ID:n och valfria HTML-attribut direkt på block- och inline-element:

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

Fotnoter

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

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

Förkortningar

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

The HTML specification is maintained by WHATWG.

Matematiska uttryck (KaTeX / MathJax)

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

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

Referenser

Relaterade ämnen