Hello, world
This is a post written in plain Markdown. It picks up the site’s fonts and colors.
A heading
- A list item
- Another, with
inline code
// Greets the reader
interface Reader {
name: string;
visits: number;
}
export function greet(reader: Reader): string {
const suffix = reader.visits > 1 ? "again" : "";
return `Hello, ${reader.name} ${suffix}`.trim();
}
.moon {
background: linear-gradient(#02947c, #f1a421);
clip-path: circle(50%);
}
A diagram
Mermaid source
graph TD
Post[Markdown post] --> Plugin{rehype plugin}
Plugin -->|build time| SVG[Static SVG]
Plugin -->|same block| Source[Source shown below]
SVG --> Page[Zero client JS]