Beginner

Introduction to Markdown

Discover what Markdown is, where it came from, why it has become the universal formatting language for developers and writers, and where you will encounter it.

What is Markdown?

Markdown is a lightweight markup language that uses plain text formatting syntax to create structured documents. It was designed to be readable in its raw form - unlike HTML, which is cluttered with tags, a Markdown document reads naturally as plain text while also being convertible to HTML and other formats.

Markdown vs HTML
# Markdown (readable as plain text)
# Welcome to My Project

This is a **bold** statement with a
[link](https://example.com) and a list:

- Item one
- Item two
- Item three

<!-- HTML (cluttered with tags) -->
<h1>Welcome to My Project</h1>
<p>This is a <strong>bold</strong> statement with a
<a href="https://example.com">link</a> and a list:</p>
<ul>
  <li>Item one</li>
  <li>Item two</li>
  <li>Item three</li>
</ul>

History of Markdown

Markdown was created in 2004 by John Gruber (of the blog Daring Fireball) with help from Aaron Swartz. Gruber's goal was simple: create a text-to-HTML conversion tool that was easy to read and write in its source form.

The name "Markdown" is a play on "markup" (as in "markup language") - it is the opposite of marking things up with complex tags. In 2014, a standardized specification called CommonMark was created to resolve ambiguities in the original Markdown spec.

Why Markdown?

📖

Readable

Markdown files are readable as plain text. No rendering needed to understand the content and structure.

🔄

Portable

Plain text works everywhere. No proprietary format lock-in. Open any .md file in any text editor.

🌍

Universal

Supported by GitHub, GitLab, Stack Overflow, Reddit, Discord, Notion, Obsidian, and hundreds more platforms.

🔧

Convertible

Convert to HTML, PDF, DOCX, slides, and more. Tools like Pandoc make Markdown a universal source format.

Where Markdown is Used

DomainUsageExamples
Software DevelopmentREADME files, documentation, changelogs, pull request descriptionsGitHub, GitLab, Bitbucket
DocumentationTechnical docs, API docs, user guides, wikisMkDocs, Docusaurus, GitBook
BloggingBlog posts, articles, content managementHugo, Jekyll, Ghost, Dev.to
AI & LLMsPrompts, CLAUDE.md files, AGENTS.md, structured contextClaude, ChatGPT, Gemini
Note-TakingPersonal knowledge management, study notesObsidian, Notion, Bear
CommunicationMessages, comments, forum postsSlack, Discord, Reddit, Stack Overflow

The .md File Extension

Markdown files use the .md extension (or sometimes .markdown). Common files you will encounter:

  • README.md - Project description and setup instructions (displayed automatically on GitHub)
  • CHANGELOG.md - Log of changes between versions
  • CONTRIBUTING.md - Guidelines for contributing to a project
  • LICENSE.md - Project license text
  • CLAUDE.md - Instructions for Claude Code AI assistant
  • AGENTS.md - Instructions for OpenAI Codex agent

Markdown vs HTML vs Rich Text

FeatureMarkdownHTMLRich Text (DOCX)
ReadabilityHigh (plain text)Low (tag clutter)N/A (binary)
Learning curveMinutesHoursMinutes (WYSIWYG)
Version controlExcellent (text diffs)Good (text diffs)Poor (binary)
Formatting powerMediumFullFull
PortabilityAny text editorAny browserRequires Word/LibreOffice
AI compatibilityExcellentGoodPoor

Markdown Flavors

Over the years, different platforms have extended the original Markdown specification:

  • CommonMark: The standardized specification. The baseline for most implementations.
  • GitHub Flavored Markdown (GFM): Adds tables, task lists, strikethrough, autolinks, and syntax highlighting.
  • MultiMarkdown: Adds footnotes, tables, citations, and metadata.
  • Pandoc Markdown: Extensive extensions for academic writing, math, and cross-format conversion.
  • Obsidian Markdown: Adds wiki-links, callouts, and knowledge graph features.
Getting started: You do not need to memorize all Markdown syntax at once. Start with headings (#), bold (**text**), links [text](url), and lists (- item). These five elements cover 80% of what you will use daily. The next lesson covers all basic syntax in detail.

Ready to Go Deeper?

Live instructor-led courses from our partners. Affiliate disclosure.