This page is not available in every language. Missing translations are disabled in the language selector.

Quick reference

Kramdown Markdown Converter Cheatsheet

A quick reference guide for Kramdown in Ruby & Jekyll: extended syntax, custom attributes ({: ... }), footnotes, math, abbreviations, and table alignments.

· Published

Kramdown is a fast, advanced Markdown parser and converter written in pure Ruby, serving as the default Markdown engine in Jekyll.

Custom Attributes Syntax (IAL)

Attach classes, IDs, and arbitrary HTML attributes directly to block and span elements:

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

Footnotes

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

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

Abbreviations

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

The HTML specification is maintained by WHATWG.

Math Expressions (KaTeX / MathJax)

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

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

References

Related topics