modified heading code examples
deleted code block def greet(name):
return f"hello, {name}!"
print(greet("...
inserted paragraph syntax highlighting works across many languages.
inserted heading python
inserted code block def fibonacci(n):
a, b = 0, 1
for _ in range(n):
...
inserted heading rust
inserted code block use std::collections::HashMap;
fn word_count(text: &str) ->...
inserted heading typescript
inserted code block interface Config {
baseUrl: string;
title: string;
mar...
inserted heading sql
inserted code block SELECT
s.slug,
COUNT(i.id) AS item_count,
MAX(v.create...
M /docs/undefined +60 -0
11 unmodified lines12- **bold** and *italic* text13- [links](https://sublimated.com)14- lists (like this one)15
16### code blocks16## code examples17
18syntax highlighting works across many languages.19
20### python21
22```python19def greet(name):20 return f"hello, {name}!"23def fibonacci(n):24 a, b = 0, 125 for _ in range(n):26 yield a27 a, b = b, a + b28
22print(greet("world"))29for num in fibonacci(10):30 print(num)31```32
25### blockquotes33### rust34
35```rust36use std::collections::HashMap;37
38fn word_count(text: &str) -> HashMap<&str, usize> {39 let mut counts = HashMap::new();40 for word in text.split_whitespace() {41 *counts.entry(word).or_insert(0) += 1;42 }43 counts44}45
46fn main() {47 let counts = word_count("hello world hello");48 println!("{:?}", counts);49}50```51
52### typescript53
54```typescript55interface Config {56 baseUrl: string;57 title: string;58 markdown: {59 highlighting?: { theme: string };60 };61}62
63async function buildSite(config: Config): Promise<string[]> {64 const pages = await loadContent(config.baseUrl);65 return pages.map(page => renderTemplate(page, config));66}67```68
69### sql70
71```sql72SELECT73 s.slug,74 COUNT(i.id) AS item_count,75 MAX(v.created_at) AS last_updated76FROM sublimated.spaces s77JOIN sublimated.items i ON i.space_id = s.id78JOIN sublimated.versions v ON v.item_id = i.id79WHERE s.visibility = 'public'80GROUP BY s.slug81ORDER BY last_updated DESC82LIMIT 10;83```84
85## blockquotes86
87> zola is a fast static site generator written in rust.88> it compiles to a single binary with no dependencies.