Markdown Cheat Sheet
Markdown formats plain text with a few symbols: # for headings, **two asterisks** for bold, [text](address) for links, - for bullet lists and three backticks for code blocks. Each example below can be edited, and the preview next to it updates as you type, so you can test a syntax before you use it.
| You want | Type |
|---|---|
| Heading | ## Section name |
| Bold | **important** |
| Link | [label](https://example.com) |
| Bullet list | - item |
| New line | two spaces at the end of a line |
Updated
Eighteen live examples covering everything from headings to footnotes and GitHub alerts, a table of where GitHub and standard CommonMark differ, a README template and a full editor at the bottom of the page.
Syntax at a glance
| Element | Markdown | Works in |
|---|---|---|
| Headings | # Page title | Everywhere |
| Bold and italic | This is **bold**, this is *italic*, | Everywhere |
| Strikethrough | The price was ~~$40~~ $30. | GitHub and most apps |
| Line breaks | First line with two spaces at the end | Everywhere |
| Links | [We.Inc tools](https://we.inc/tools) | Everywhere |
| Reference links | Read the [guide][1] and the [tools][tools]. | Everywhere |
| Images |  | Everywhere |
| Lists | - Apples | Everywhere |
| Checkboxes (task lists) | - [x] Write the draft | GitHub and most apps |
| Blockquotes | > Good design is as little design as possible. | Everywhere |
| Inline code | Run `npm install` and open `index.html`. | Everywhere |
| Code blocks | ```js | Everywhere |
| Tables | | Plan | Price | Sites | | GitHub and most apps |
| Horizontal rule | Above the line | Everywhere |
| Footnotes | Markdown was created in 2004.[^1] | GitHub and most apps |
| Escaping characters | \*not italic\* and 1\. not a list | Everywhere |
| Automatic links | Visit https://we.inc or www.example.com | GitHub and most apps |
| Alerts (callouts) | > [!NOTE] | GitHub only |
Headings
# Page title
## Section
### SubsectionOne to six # signs, then a space. Use a single # heading per document.
Bold and italic
This is **bold**, this is *italic*,
and this is ***both***.Underscores (__bold__, _italic_) also work, but not in the middle of a word.
Strikethrough
The price was ~~$40~~ $30.Two tildes on each side. Part of GitHub Flavored Markdown, not core CommonMark.
Line breaks
First line with two spaces at the end
Second line\
Third line after a backslash
A blank line starts a new paragraph.A single Enter does not break the line. End it with two spaces or a backslash, or leave a blank line for a new paragraph.
Links
[We.Inc tools](https://we.inc/tools)
[Link with a title](https://we.inc "Hover text")
<https://we.inc>Text in square brackets, address in round brackets. Angle brackets make a bare address clickable.
Reference links
Read the [guide][1] and the [tools][tools].
[1]: https://we.inc/guides
[tools]: https://we.inc/toolsKeeps long addresses out of the text. The definitions can go anywhere and are not shown.
Images
Like a link with ! in front. The text in brackets is the alt text that screen readers read out.
Lists
- Apples
- Pears
- Conference
- Comice
1. Preheat the oven
2. Mix the dry ingredients
3. Bake for 25 minutesUse -, * or + for bullets and 1. for numbers. Indent by two to four spaces to nest.
Checkboxes (task lists)
- [x] Write the draft
- [ ] Add screenshots
- [ ] PublishA space between the brackets is unchecked; an x is checked. On GitHub you can tick them in issues.
Blockquotes
> Good design is as little design as possible.
>
> Second paragraph of the quote.Start each line with >. A line with only > keeps the paragraphs in one quote.
Inline code
Run `npm install` and open `index.html`.Backticks keep text exactly as typed. To show a backtick, wrap with two: `` a`b ``.
Code blocks
```js
const total = items.reduce((sum, i) => sum + i.price, 0);
```Three backticks before and after. The word after the opening fence names the language for highlighting.
Tables
| Plan | Price | Sites |
| :--- | ---: | :---: |
| Free | $0 | 1 |
| Pro | $20 | 5 |Pipes separate columns; the dashes row is required. Colons set alignment: left, right or centre.
Horizontal rule
Above the line
---
Below the lineThree or more dashes, asterisks or underscores on their own line. Leave blank lines around dashes so they are not read as a heading underline.
Footnotes
Markdown was created in 2004.[^1]
[^1]: By John Gruber, with help from Aaron Swartz.The note is gathered at the bottom of the document with a link back.
Escaping characters
\*not italic\* and 1\. not a listA backslash before * _ # [ ] ` and similar characters shows them as plain text.
Automatic links
Visit https://we.inc or www.example.comGitHub turns plain addresses into links. Strict CommonMark needs angle brackets.
Alerts (callouts)
> [!NOTE]
> Useful information readers should know.
> [!WARNING]
> Something that needs attention.GitHub shows these as coloured boxes; other apps show a plain quote, as the preview here does.
GitHub vs CommonMark
| Feature | CommonMark | GitHub (GFM) |
|---|---|---|
| Tables | Not supported | Supported |
| Task list checkboxes | Not supported | Supported, clickable in issues and pull requests |
| Strikethrough | Not supported | ~~text~~ |
| Bare URLs become links | Only inside <angle brackets> | Yes, for http, https and www addresses |
| Footnotes | Not supported | Supported |
| Alerts like > [!NOTE] | Plain blockquote | Styled callout box |
| Raw HTML | Allowed | Allowed, but scripts, styles and some tags are removed |
| Mentions and issue links | Plain text | @user and #123 become links |
README template
# Project name
One sentence on what this project does and who it is for.
## Features
- First thing it does well
- Second thing it does well
## Getting started
```bash
git clone https://github.com/you/project.git
cd project
npm install
npm run dev
```
## Usage
Show the smallest useful example here.
## Contributing
Pull requests are welcome. Open an issue first to discuss larger changes.
## License
MIT. See [LICENSE](LICENSE).
Why Markdown looks different in different apps
The original Markdown description left many edge cases open, such as how far a nested list must be indented or whether a line break needs two spaces. Each app made its own choices. CommonMark fixed those rules in a specification, and most modern tools now follow it, then add their own extras on top.
That is why the support label matters. Headings, emphasis, links, lists, quotes and code work everywhere. Tables, checkboxes, strikethrough and footnotes come from GitHub's extensions and work in most, but not all, places. Alerts are GitHub's own.
Writing a good README
A README is the front page of a project. Open with one sentence on what it does and who it is for, then show how to install and run it in a copyable code block, then the smallest useful example. Put long reference material in separate files and link to them.
The template below follows that order. Load it into the editor, replace the placeholder text and copy the result into README.md.
How it works
- Find the element you need. The label under each example says whether it works everywhere, in GitHub and most apps, or on GitHub only.
- Edit the Markdown in the left box. The preview on the right renders it as you type.
- Use Reset to restore the original example and Copy to take the Markdown with you.
- For longer writing, use the full editor at the bottom, or load the README template into it.
Tips
- Leave a blank line before and after lists, tables, code blocks and headings. Many renderers need it, and it never hurts.
- Write alt text for every image. It is what screen reader users hear and what shows when the image fails to load.
- Use reference-style links in long documents. The text stays readable and each address is written once.
- If something renders as plain text, check for a missing space: #Heading and -item are not recognised; # Heading and - item are.
Frequently asked questions
How do I make a line break in Markdown?
End the line with two spaces or a backslash, then press Enter. A plain Enter is treated as a space and the lines join up. For a new paragraph instead of a line break, leave one blank line.
How do I add a checkbox in Markdown?
Start a list item with - [ ] for an empty box or - [x] for a ticked one. Task lists are part of GitHub Flavored Markdown, so they work on GitHub, GitLab and most note apps, but not in strict CommonMark.
How do I make a table?
Write the header row with pipes between the columns, then a row of dashes, then one line per row. The columns do not have to line up in the source. Add colons to the dashes row to align a column left, right or centre.
What is the difference between Markdown, CommonMark and GFM?
Markdown is the original 2004 syntax, which left many cases undefined. CommonMark is a precise specification of that core syntax. GitHub Flavored Markdown is CommonMark plus tables, task lists, strikethrough, automatic links and footnotes, and it is what most developer tools follow.
Can I use HTML inside Markdown?
Most renderers allow it, so details and summary tags or a centred image are common in READMEs. GitHub removes scripts, styles and some attributes for safety. The previews on this page do not render raw HTML, so they show it as text.
Related: Markdown table generator, HTML to Markdown converter, Text to HTML converter, Regex cheat sheet, All free tools.
Create your website for free or see all free tools. Create your website for free on We.Inc, no card needed. AI building is on paid plans from $19 a month.
More in Guides
- Microsoft Teams Webhook: How to Post Messages in 2026
- Migrating Off Drupal Multisite: Choosing a Path After Drupal 7 and Moving Sites in Order | How-to Guide
- Migrating Off WordPress Multisite: Inventory, Export, Rebuild and Redirect Without Losing Traffic | How-to Guide
- Mobile-First Web Design: What It Means and How to Do It | How-to Guide
- Modern CSS Features: Nesting, :has(), Container Queries, Subgrid
- Move Client Websites to a White-Label Platform Safely
- How to Make a Website Multilingual Without Hurting SEO
- Municipal Website Content Inventory: A Step-by-Step Method and Spreadsheet Template | How-to Guide
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App