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:
- First item
- Second item
- Sub-item
- Another sub-item
- Third item
Ordered:
- First
- Second
- Third
Task list:
- Done
- Open
Quotes
A quote spanning several lines that simply keeps going.
And a nested quote inside it.
Links
- Inline: matthias.sh on GitHub
- Automatic: https://github.com/matthiasdotsh/matthias.sh
- As reference: the repository
Image

Table
| Language | Code | File extension |
|---|---|---|
| German | de | .md |
| English | en | .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 highlightingHorizontal 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:
It works inline just as well, for example the Pythagorean theorem 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 $β¦$.
And here is the footnote text.