Learn Markdown by Examples
CommonMark / GFMMarkdown is a lightweight markup language that you can use to add formatting elements to plain text text documents. Created by John Gruber in 2004, Markdown is now one of the world's most popular markup languages.
These examples cover the core syntax of Markdown, from basic text formatting and lists to more advanced features like tables, code blocks, and adding images and links.
Headings
Headings are used to structure your document. This sample shows the six levels of headings available in Markdown.
Paragraphs
Paragraphs are the building blocks of text. This example demonstrates how to create paragraphs and line breaks.
Emphasis
Emphasis allows you to highlight text. This sample shows how to make text bold, italic, or strikethrough.
Blockquotes
Blockquotes are used to quote text from another source. This example shows how to create single and nested blockquotes.
Lists
Markdown supports ordered and unordered lists. This sample demonstrates how to create and nest them.
Code Blocks
Code blocks are used to display source code. This example shows inline code and fenced code blocks with syntax highlighting.
Links
Links connect your document to the web. This sample demonstrates inline links, reference links, and auto-links.
Images
Images are similar to links but with an exclamation mark. This example shows how to embed images.
Tables
Tables allow you to display data in rows and columns. This sample shows the syntax for creating and aligning tables.
Footnotes
Footnotes allow you to add notes at the end of the document. This example shows the syntax for defining and referencing footnotes.

