Guide

What is Markdown? Syntax Guide with Examples

Markdown is a lightweight formatting language that converts plain text to HTML. Learn the Markdown syntax — headings, bold, lists, links, code blocks — and where Markdown is used today.

What Markdown is

Markdown is a plain-text formatting syntax created by John Gruber in 2004. You write normal text with a handful of punctuation symbols to indicate formatting — and a Markdown processor converts it to HTML.

The goal was to make formatted writing readable as-is. Unlike HTML, a Markdown document is still human-readable in its raw form — you can understand it without knowing the syntax.

Markdown source
# Hello World

This is **bold** and this is *italic*.

- Item one
- Item two
Renders as

Hello World

This is bold and this is italic.

  • Item one
  • Item two

Core Markdown syntax

MarkdownRenders as
# Heading 1Large heading (H1)
## Heading 2Subheading (H2)
**bold text**Bold text
*italic text*Italic text
~~strikethrough~~Strikethrough text
[Link text](url)Clickable hyperlink
![Alt text](url)Image
- ItemUnordered list item
1. ItemOrdered list item
`inline code`Inline code (monospace)
```\ncode block\n```Fenced code block
> quoted textBlockquote
---Horizontal rule
| Col | Col |Table column separator

Where Markdown is used

PlatformUse
GitHubREADME files, issues, pull request descriptions, wikis
Stack OverflowQuestions, answers, comments
NotionPages and documents
Slack / TeamsMessage formatting (subset of Markdown)
RedditPost and comment formatting
Jekyll / HugoStatic site generator content
JupyterNotebook cell documentation
DiscordMessage formatting

Markdown vs HTML — when to use each

Markdown is ideal for writing content — documentation, README files, blog posts, notes. It is faster to write and easier to read in source form.

HTML is better for precise layout control — custom styles, complex tables, specific attributes. Most Markdown processors also accept raw HTML inline, so you can mix both when needed.

Write and preview Markdown live

Full editor with side-by-side preview

Open Markdown Editor →

Convert Word documents to Markdown

Upload a .docx and get clean Markdown out

Word to Markdown →
What is Markdown? Syntax Guide with Examples | DataToolkit | DataToolkit