This page demonstrates every standard Markdown formatting option supported by Sarde. For custom extensions (admonitions, cards, tabs, and more), see the Kitchen Sink.
Headings
Headings from h1 through h6 are constructed with a # for each level:
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraphs
A paragraph is one or more consecutive lines of text, separated by one or more blank lines.
Here is a second paragraph. Notice how a blank line separates them. Paragraphs can span multiple lines in the source and still render as a single block of text.
Inline Text Formatting
The following inline formatting options are available:
- Bold text using
**double asterisks** - Italic text using
*single asterisks* - Bold and italic using
***triple asterisks*** Strikethroughusing~~double tildes~~Inline codeusing`backticks`- A hyperlink using
[text](url)
Horizontal Rule
Three or more dashes produce a horizontal rule:
Blockquotes
This is a blockquote. It can span multiple lines and supports bold, italic, and
inline codeinside it.Blockquotes can also be nested. This is a nested blockquote.
Back to the first level.
Unordered Lists
- Item one
- Item two
- Nested item A
- Nested item B
- Deeply nested item
- Item three
Ordered Lists
- First item
- Second item
- Nested item one
- Nested item two
- Third item
Task Lists
- Write the markdown basics page
- Add all standard formatting
- Review the rendered output
- Ship it
Links
- Inline link
- Link with title
- Autolink: https://example.com
Images
Standard markdown image syntax:
Tables
| Feature | Status | Priority |
|---|---|---|
| Markdown | Done | High |
| Extensions | Done | High |
| Theme support | In progress | Medium |
| Plugin system | Planned | Low |
Tables support alignment:
| Left Aligned | Center Aligned | Right Aligned |
|---|---|---|
| Row 1 | Center 1 | $10 |
| Row 2 | Center 2 | $200 |
| Row 3 | Center 3 | $3,000 |
Code Blocks
Inline code: const x = 42
Fenced code block with syntax highlighting:
package mainimport ( "fmt" "net/http")func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, Sarde!") }) http.ListenAndServe(":8080", nil)}import { create, search } from '@orama/orama'const db = await create({ schema: { title: 'string', content: 'string', url: 'string', },})const results = await search(db, { term: 'getting started', limit: 10,})site: title: "My Documentation" description: "Built with Sarde" url: "https://docs.example.com" language: "en"build: minify: true drafts: false<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>{{ .Site.Title }}</title></head><body> {{ template "header" . }} <main>{{ .Content }}</main> {{ template "footer" . }}</body></html>:root { --color-primary: #6366f1; --color-surface: #1a1a2e; --font-body: 'Inter', system-ui, sans-serif;}.aside--note { border-left: 4px solid var(--color-primary); background: color-mix(in srgb, var(--color-primary) 10%, transparent); padding: 1rem 1.5rem; border-radius: 0.5rem;}sarde build --minifyrsync -avz dist/ deploy@server:/var/www/site/echo "Deployed successfully!"Footnotes
Here is a sentence with a footnote1, and here is another2.
Definition Lists
- Sarde
- A zero-config, Go-based static site generator.
- Goldmark
- A CommonMark-compliant Markdown parser written in Go.