Markdown Syntax Guide
This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola theme.
Headings
The following HTML <h1>—<h6> elements represent six levels of section
headings. <h1> is the highest section level while <h6> is the lowest.
H1
H2
H3
H4
H5
H6
Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
Blockquotes
The blockquote element represents content that is quoted from another source,
optionally with a citation which must be within a footer or cite element,
and optionally with in-line changes such as annotations and abbreviations.
Blockquote without attribution
Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a
blockquote.
Blockquote with attribution
Don't communicate by sharing memory, share memory by communicating.
— Rob Pike1
GitHub-style alerts
Alerts, also sometimes known as callouts or admonitions, are a Markdown extension based on the blockquote syntax that you can use to emphasize critical information. Requires Zola 0.21.0 or newer.
Some content with Markdown
syntax. Here is alink.
Some content with Markdown
syntax. Here is alink.
Some content with Markdown
syntax. Here is alink.
Some content with Markdown
syntax. Here is alink.
Some content with Markdown
syntax. Here is alink.
Buttons and links
Tables
Tables aren't part of the core Markdown spec, but Zola supports them out of the box.
| Name | Age |
|---|---|
| Bob | 27 |
| Alice | 23 |
Inline Markdown within tables
| Italics | Bold | Code |
|---|---|---|
| italics | bold | code |
List Types
Ordered List
- First item
- Second item
- Third item
Unordered List
- List item
- Another item
- And another item
Nested Unordered List
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
- Third item
- Sub One
- Sub Two
- Sub Three
- Sub Four
Nested Ordered List
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
- Third item
- Sub One
- Sub Two
- Sub Three
- Sub Four
Task List
- Completed item
-
Incomplete item
- Nested completed item
- Nested incomplete item
Preformatted Text
This text is preformatted!
This hanging indent is preserved.Code Blocks
Regular
fn main() {
println!("Hello, world!");
}With Line Numbers
use std::collections::HashMap;
#[derive(Debug)]
struct TwinPeaksCharacter {
name: String,
coffee_rating: f32,
pie_preference: String,
}
fn main() {
let mut black_lodge = HashMap::new();
black_lodge.insert("agent", TwinPeaksCharacter {
name: String::from("Dale Cooper"),
coffee_rating: 9999.99,
pie_preference: String::from("Damn Fine Cherry"),
});
black_lodge.insert("giant", TwinPeaksCharacter {
name: String::from("The Fireman"),
coffee_rating: 42.424242,
pie_preference: String::from("Garmonbozia"),
});
// Calculate total appreciation of damn fine coffee
let total_coffee: f32 = black_lodge.values()
.map(|character| character.coffee_rating)
.sum();
println!("☕ Total coffee appreciation: {:.2} cups", total_coffee);
}Other Elements — abbr, sub, sup, kbd, details, mark
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL+ALT+Delete to end the session.
Something wicked this way comes
Boo! 👻
Ha ha, scared ya!
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.