Skip to content
svelte-edda

Formatting

Pages use GitHub Flavored Markdown: tables, task lists, strikethrough and autolinks work as they do on GitHub.

Code blocks

Fenced code blocks are highlighted with Shiki in light and dark themes and get a copy button.

export function greet(name: string): string {
	return `Hello, ${name}!`;
}

Alerts

Alerts use GitHub's own syntax, so they look the same on GitHub and on the site. There are five types; any other, such as [!WARN], is an error:

> [!NOTE]
> Useful information that users should know, even when skimming.

HTML

Raw HTML passes through, for the rare case Markdown cannot express. Prefer a component for anything you use more than once.