Markdown is a plain-text markup format for writing structured documents with simple symbols. It is commonly used for documentation, README files, notes, and static site content because the source remains readable as text and can be converted to HTML.

Basic Markdown syntax

# Heading 1

## Heading 2

A paragraph with bold and _italic_ text.

- A bullet item
- Another bullet item

1. A numbered item
2. Another numbered item

[Link text](https://example.com)
![Alt text](/images/photo.jpg)

`inline code`

```js
console.log("hello, web");
```

Different Markdown flavors add features such as tables, task lists, footnotes, and fenced code attributes. Common flavors include CommonMark and GitHub Flavored Markdown.

Why Markdown works well for static sites

PropertyPractical benefitTrade-off
Plain textEasy to store, diff, and version in GitLimited layout control without extensions
Readable sourceAuthors can edit without a proprietary editorComplex documents may need MDX or shortcodes
HTML conversionStatic site generators render it to web pagesOutput depends on generator and theme
PortabilityFiles can move between tools and platformsFlavor differences can affect rendering

Markdown and front matter

Static site generators often pair Markdown with front matter, a metadata block at the top of the file.

---
title: "My First Post"
date: 2026-10-14T10:00:00Z
tags:
  - blogging
---

The article body starts here.

Front matter stores metadata; Markdown stores content. Together, they form a portable content format for Git based publishing workflows. For more detail, see What Is Front Matter in Markdown? and [What Is a Git based CMS?](/blog/Git based-cms-explained/).