Markdown Guide: Basic Syntax

Published on:

Markdown is a lightweight markup language that lets you create formatted documents using plain text. It’s the most natural way to produce content on Astro-based sites like Zahit.

Headings

# H1 Heading
## H2 Heading
### H3 Heading

Text Formatting

Use double asterisks for bold text, single asterisks for italics, and double tildes for strikethrough.

Use > for blockquotes. This is a great way to highlight important sentences you want readers to notice.

Lists

Unordered list:

  • First item
  • Second item
    • Nested item
  • Third item

Ordered list:

  1. Do this first
  2. Then this
  3. Finally this

Add links in the format Astro official site.

Code Blocks

Use backticks for inline code.

function zahit() {
  return 'Simplicity is depth, not lack.';
}

Tables

SyntaxDescription
**bold**Bold text
*italic*Italic text
[text](url)Link

Markdown takes minutes to learn and a lifetime to appreciate.