Markdown
Markdown is a lightweight markup language that formats plain text with ordinary punctuation, such as asterisks for emphasis and pound signs for headings, so the source stays readable before any software renders it.
John Gruber created Markdown in 2004 as a markup language for web writers, with Aaron Swartz contributing to the syntax design. The original tool was a Perl script that converted the text into HTML. Gruber’s stated goal was a document that could be published as-is, as plain text, without looking marked up. Its conventions borrow from how people already formatted plain-text email.
A short document shows the core syntax for headings, emphasis, lists, links, and inline code:
# Release Notes
Version 2.1 adds **faster startup** and fixes a *rare* crash.
- Run `app --check` to verify the install.
- Read the [migration guide](https://example.com/migrate) first.
Edit the source below to see the rendered result live, then switch to the HTML view to see the markup a converter produces from the same plain text:
Gruber’s original description left many edge cases ambiguous, so implementations disagreed on how to render the same text. Two specifications now pin the syntax down:
- CommonMark: A strict specification with an extensive test suite, first released in 2014 and at version 0.31.2 since January 2024.
- GitHub Flavored Markdown (GFM): A strict superset of CommonMark that adds tables, task lists, strikethrough, and extended autolinks.
Markdown is the default format for README files, issue trackers, and documentation generators such as MkDocs. Notebook tools like Jupyter Notebook use it for prose cells, and large language models commonly format their replies with it.
PyPI renders a project’s Markdown README, using GFM by default. Python’s standard library has no Markdown parser, so projects rely on third-party packages such as Python-Markdown.
Related Resources
Tutorial
Creating Great README Files for Your Python Projects
In this tutorial, you'll learn how to create, organize, and format high-quality README files for your Python projects.
For additional information on related topics, take a look at the following resources:
- Jupyter Notebook: An Introduction (Tutorial)
- Build Your Python Project Documentation With MkDocs (Tutorial)
- How to Render Markdown in a Django Application (Tutorial)
- Python MarkItDown: Convert Documents Into LLM-Ready Markdown (Tutorial)
- Building Python Project Documentation With MkDocs (Course)
- Creating Great README Files for Your Python Projects (Quiz)
- Using Jupyter Notebooks (Course)
- Jupyter Notebook: An Introduction (Quiz)
- Converting Documents to Markdown With MarkItDown (Course)
- Python MarkItDown: Convert Documents Into LLM-Ready Markdown (Quiz)
Have a question about this? Mentor AI can show you examples, compare related terms, and point you to tutorials.
By Martin Breuss • Updated Nov. 20, 2026