Heading 1
Type # followed by a space at the start of a line for your main heading.
# Main HeadingFAST MARKDOWN REFERENCE
Quickly find the Markdown formatting you need. Browse headings, bold text, links, lists, tables, checkboxes and code examples. Copy any example or print this free Markdown cheat sheet for later.
FIND AND COPY MARKDOWN
Search by name, copy the example you need, and paste it into your document.
What do the labels mean? CommonMark: basic Markdown that works in most apps. GFM: GitHub-style features, including tables and checklists. Extended: extra formatting that some apps support. GitHub-specific: special GitHub features that may look different elsewhere.
BASIC REFERENCE
Headings, bold and italic text, paragraphs, quotes and everyday formatting.
Type # followed by a space at the start of a line for your main heading.
# Main HeadingType ## and a space to add a section heading.
## Section HeadingType ### and a space for a smaller heading. You can use up to six # symbols.
### Smaller HeadingPut two asterisks on each side of text to make it bold.
**important text**important text
Put one asterisk on each side to make text italic.
*emphasized text*emphasized text
Three asterisks on each side make text both bold and italic.
***very important***very important
Leave a blank line between paragraphs.
First paragraph.
Second paragraph.First paragraph.
Second paragraph.
Add two spaces at the end of the first line, then press Enter. This moves text to the next line without starting a new paragraph. You can also end the line with a backslash.
First line
Second lineFirst line
Second line
Start a line with > and a space to create a quotation.
> A useful quotation.A useful quotation.
Type --- on its own line to separate two sections.
---Add a backslash before an asterisk or other Markdown symbol when you want to show the symbol itself.
\*not italic\**not italic*
LISTS REFERENCE
Bulleted lists, numbered steps and nested items.
Start each list item with a hyphen and space.
- First item
- Second item
- Third itemStart each line with a number, period and space.
1. First step
2. Second step
3. Third stepIndent a bullet beneath another bullet to make a smaller list within it. Keep the spacing consistent.
- Main item
- Sub-item
- Another sub-itemLINKS & IMAGES REFERENCE
Add website links and images, including reusable links.
Write the link text in square brackets followed by the URL in parentheses.
[Visit Example](https://example.com)Add a quoted title after the web address to give readers extra information about the link.
[Read the docs](https://example.com "Open documentation")Give a link an easy-to-remember name, then use that name to link to the same address elsewhere in your document.
[Read the guide][guide]
[guide]: https://example.comStart with !, put a description of the picture in square brackets, then add its file path or URL. The image must be available where you open the document.
This example points to a separate image file. To see the picture, make sure the image is available in the location shown in the link.
Put a full web address inside angle brackets to create a clickable link.
<https://example.com>TABLES REFERENCE
Create tables and choose how text lines up in each column.
Separate cells with | and add a dashed row below the column names. Tables work on GitHub and in other apps that support Markdown tables.
| Name | Score |
| --- | --- |
| Alice | 95 |
| Bob | 88 || Name | Score |
|---|---|
| Alice | 95 |
| Bob | 88 |
Put : before the dashes to align the text in that column to the left.
| Name | Role |
| :--- | :--- |
| Ada | Writer || Name | Role |
|---|---|
| Ada | Writer |
Put : at both ends of the dashes to center the text in a column.
| Task | Status |
| :---: | :---: |
| Review | Done || Task | Status |
|---|---|
| Review | Done |
Put : after the dashes to align the text in that column to the right.
| Item | Price |
| :--- | ---: |
| Pen | $2 || Item | Price |
|---|---|
| Pen | $2 |
Write \| when you want a visible | inside one table cell, not a new column.
| Text |
| --- |
| Left \| right || Text |
|---|
| Left | right |
CODE REFERENCE
Add short code snippets or longer code examples to your text.
Put one backtick on each side of a short command or piece of code.
Use `npm install` to install it.Use npm install to install it.
Put three backticks above and below the code you want to show.
```
Hello, Markdown!
```Hello, Markdown!
Add a language name, such as js, after the opening backticks. Some apps will highlight the code in color.
```js
console.log("Hello!");
```console.log("Hello!");
Start a line with four spaces to show it as code instead of normal text.
const answer = 42;const answer = 42;
GITHUB REFERENCE
Use checklists, crossed-out text, footnotes and highlighted GitHub notes.
Put ~~ on both sides of text to cross it out.
~~Outdated text~~Outdated text
Start a list item with - [ ] to add a task you have not finished.
- [ ] Write the first draftStart a list item with - [x] to mark a task as done.
- [x] Review the draftOn GitHub, a web address often becomes a clickable link even without [text](url) formatting.
https://example.comUse [^1] beside a sentence and add the matching note lower down. GitHub supports footnotes in Markdown files, but not in wikis.
On GitHub, this appears as a highlighted note. Other apps may display it as a normal quote.
> [!NOTE]
> Useful information for readers.GitHub highlights this message. Other Markdown apps may show it as a normal quote.
On GitHub, this appears as a highlighted warning. Other Markdown apps may display it as a normal quote.
> [!WARNING]
> Check this before continuing.GitHub highlights this message. Other Markdown apps may show it as a normal quote.
QUICK START
A Markdown cheat sheet is a quick reference for the symbols used to format plain text. It pairs Markdown syntax with examples of the formatted result, so you can find a heading, link, list, table or code example without memorizing every symbol.
Use the searchable reference above when writing notes, project READMEs or documentation. For a full writing experience, copy an example into our online Markdown editor and see the document update as you type. If you already have a file to read, try the Markdown Viewer.
THREE QUICK STEPS
Look up a format, copy the text, then paste it wherever you write Markdown.
Search for something like “table” or “link”, or choose a category to browse examples.
Select Copy beside an example. The copied text keeps spaces and line breaks, even when those are hard to see.
Paste the example into your document or try it in our Markdown Editor.
READY-TO-USE EXAMPLES
Want to write a README, meeting notes or release notes? Copy one of these complete examples, paste it into the Markdown Editor, and make it your own.
Introduce your project, list its features and show readers how to get started.
# Sample Project
A short description of what this project does.
## Features
- [x] Works in the browser
- [ ] Add more examples
## Getting Started
```bash
npm install
```
Read the [documentation](https://example.com).A short description of what this project does.
npm install
Read the documentation.
Keep a meeting summary, decisions and follow-up tasks together.
# Team Meeting
**Date:** Add a date
## Decisions
- Publish the first draft
- Review the design
## Action Items
- [x] Share meeting notes
- [ ] Send the final update
> Next review: Friday.Date: Add a date
Next review: Friday.
Summarize what changed, what is new and what has been completed.
# Release Notes
## Version 1.1
This release improves **performance** and documentation.
### Changes
- Faster search
- Updated Markdown examples
| Change | Status |
| :--- | :---: |
| Search | Done |
| Documentation | Done |This release improves performance and documentation.
| Change | Status |
|---|---|
| Search | Done |
| Documentation | Done |
KNOW THE DIFFERENCE
Headings and links work in most Markdown apps. Tables, checklists and alerts may look different depending on where you open the file.
| Formatting | CommonMark | GitHub-style Markdown | What to know |
|---|---|---|---|
| Headings, links, bold, italic and lists | Yes | Yes | These are widely supported Markdown basics. |
| Tables, checkboxes and crossed-out text | No | Yes | Use GitHub or another app that supports Markdown tables and checklists. |
| Code blocks with a language name | Yes | Yes | Code may have different colors depending on the app. |
| GitHub Alerts such as NOTE or WARNING | No special styling | Available on GitHub | Other apps may show a normal quote instead of a colored alert. |
The same Markdown can look different from one app to another. GitHub supports footnotes in many places, but not in wikis. Colored GitHub alerts also need an app that supports them.
For detailed syntax rules, see the CommonMark specification and GitHub Flavored Markdown specification.
TABLES MADE SIMPLE
To make a Markdown table, write column names on the first line and a row of dashes underneath. Use | between cells and a colon in the dashed row to set alignment. Make sure there is one dashed section for every column. If a paragraph comes before the table, leave a blank line between them.
| Separator | Alignment |
|---|---|
:--- | Left |
:---: | Center |
---: | Right |
To show | inside a table cell, write \|. If your table appears as plain text, the app you are using may not support Markdown tables.
Create a table without typing every |, or tidy up an existing Markdown table.
GITHUB NOTES
GitHub adds features such as checklists, tables and footnotes. Write - [ ] for a task you still need to do, or - [x] for one you have finished. To add a footnote, put [^1] beside the text and write the matching note lower down in your document.
On GitHub, > [!NOTE] and > [!WARNING] create highlighted notes and warnings. Copy their Markdown here, but remember that other apps may show them as ordinary quotes.
See GitHub's Markdown documentation for the latest platform details.
KEEP A COPY
Choose Print / Save as PDF above to open your browser's print window. Select a printer for a paper copy, or choose the browser's Save as PDF option when it is available. Printing uses a simplified layout with the Markdown examples and results.
Want a copy you can edit? Choose Download .md to save the full reference as a Markdown file. You can open the downloaded file in the Markdown Editor or any compatible text editor.
QUICK FIXES
If the text does not look right, check the spacing and symbols first. Some features may also be unavailable in your Markdown app.
Type a space after the #. Write # Heading, not #Heading.
Add two spaces at the end of the first line, use a trailing backslash, or leave a blank line to start a new paragraph.
Add a row of dashes below your column names. Your app also needs to support Markdown tables.
Use - [ ] for something still to do, or - [x] for a finished task. Checklists appear only in apps that support them.
Check where the image is saved. A link like ./diagram.png works only when the image is in the right folder next to your document.
Put a backslash before an asterisk when you want to show the asterisk itself, such as \*word\*.
Compare the incorrect and corrected examples, then apply the same fix to your document.
Add a space after the # symbol.
#Heading# HeadingAdd two spaces before the second bullet to show it beneath the first.
- Parent
- Child- Parent
- ChildAdd a dashed row between the column names and the first data row.
| Name | Score |
| Ana | 90 || Name | Score |
| --- | --- |
| Ana | 90 |Put a backslash before each asterisk so the word is not italic.
*filename*\*filename\*EXPLORE TOOLS
COMMON QUESTIONS
A Markdown cheat sheet shows the symbols used to format text, with examples for headings, bold text, links, lists, tables and code. Find the format you need, see what it looks like, and copy it into your document.
Put two asterisks before and after a word or phrase, such as **important**, to make it bold.
Write the link text in square brackets, then the URL in parentheses: [Visit Example](https://example.com). You can also use angle brackets around a full URL.
Write a row of column headings, a separator row using dashes, and one row for each set of values. Use | between cells. For example: | Name | Score | followed by | --- | --- |. Tables work in GitHub and other apps that support GitHub-style Markdown, but not in every Markdown app.
Use - [ ] for an unchecked task or - [x] for a completed task. Checklists work on GitHub and in other apps that support them.
End the first line with two spaces and press Enter, or add a backslash at the end of the line. A blank line starts a new paragraph.
GitHub supports basic Markdown plus tables, task lists and crossed-out text. GitHub also has its own styled alerts, which may look like ordinary quotes in other apps.
Yes. Choose Print / Save as PDF to open your browser's print options, where you can print or save a PDF if your browser supports it. You can also choose Download .md for a Markdown version of the reference.
To put a bullet underneath another bullet, indent it by two spaces in a simple list. Keep the indentation consistent so the second item stays inside the first.
Put a backslash before the | character when you want to show it inside a cell, as in left \| right. Without the backslash, the table treats it as a column divider.
Leave a blank line to start a new paragraph. To move text to the next line without a new paragraph, type two spaces or a backslash at the end of the line, then press Enter.
Yes. Yes. README.md files on GitHub support headings, links, tables and checklists. GitHub alerts may look different in other Markdown apps.