Markdown Test

This is an automatic translation of the German original.

This post tests the Markdown elements I usually use.

Heading H1

Heading H2

Heading H3

Heading H4

Heading H5
Heading H6

Text formatting

Bold, italic, bold and italic, strikethrough and underline. Underline only exists in Markdown as raw HTML.

And inline code in the middle of a sentence.

Lists

Unordered, nested:

Ordered:

  1. First
  2. Second
  3. Third

Task list:

Quotes

A quote spanning several lines that simply keeps going.

And a nested quote inside it.

Image

The logo: a penguin with a trombone on a bicycle

Table

LanguageCodeFile extension
Germande.md
Englishen.en.md

Code blocks

Nix:

{ pkgs, ... }:
{
  environment.systemPackages = [ pkgs.zola ];
}

Python:

def greet(name: str) -> str:
    return f"Hello, {name}!"

Without a language tag (no highlighting):

plain text without syntax highlighting

Horizontal rule


Footnotes

A sentence with a footnote.1

Emoji

Emoji via shortcode: ✨ 🚲 🎺, and directly as Unicode: 🎺🚲

Callout boxes (GitHub alerts)

A neutral note.

A helpful tip.

A warning that should stand out.

Definition list

Zola
A static site generator written in Rust.
Nix
Package manager and language for reproducible builds.

Math

LaTeX syntax is not rendered by Zola on its own. If I write the formula as $$a^2 + b^2 = c^2$$, it stays literal:

$$ a^2 + b^2 = c^2 $$

Real math still works without JavaScript, using MathML, which browsers render natively. I generate it once from LaTeX (for example with pandoc) and paste the <math> markup straight in. The same formula, now rendered:

a2+b2=c2a^2 + b^2 = c^2

It works inline just as well, for example the Pythagorean theorem a2+b2=c2a^2 + b^2 = c^2 with no line break.

It needs no JavaScript and no external requests, so it fits the rest of the site. The trade-off is a longer source, since the generated <math> markup lives in the post instead of a plain $…$.

1

And here is the footnote text.

← All posts