Terminal Markdown previewer — GUI-like experience.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Code Blocks with Syntax Highlighting#

Read code — 40+ languages with colors, line numbers, and frames.

What Syntax Highlighting is#

Syntax Highlighting renders fenced code blocks with language-aware coloring, decorative frames, and line numbers.

Rust#

fn main() {
    let name = "leaf";
    println!("Hello from {}!", name);
}

Python#

def fibonacci(n):
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

JavaScript#

const greet = (name) => {
    return `Hello, ${name}!`;
};
console.log(greet("leaf"));

Bash#

#!/bin/bash
for file in *.md; do
    leaf --watch "$file" &
done