Markdown Cheatsheet
This is a quick reference sheet for Markdown Cheat sheet syntax, including headings, lists, link, image, table, blockquotes, code, math formulas and more. It covers the most commonly used elements.
Markdown Heading Syntax
Markdown ATX Style Headings
markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6Setext Style Headings
markdown
Heading 1
=========
Heading 2
---------Markdown Text Formatting
markdown
**Bold text**
__Bold text__
*Italic text*
_Italic text_
***Bold italic text***
___Bold italic text___
~~Strikethrough text~~
`Inline code`Paragraphs and Line Breaks
markdown
This is the first paragraph.
This is the second paragraph.
This is a line of text.
This is a new line (two spaces at end of line).Markdown Lists
Markdown Unordered List
markdown
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
* Using asterisk
+ Using plusMarkdown Ordered List
markdown
1. First item
2. Second item
1. Subitem 2.1
2. Subitem 2.2
3. Third itemTask List
markdown
- [x] Completed task
- [ ] Incomplete task
- [ ] Another taskMarkdown Links
markdown
[Link text](https://www.markdownlang.com)
[Link with title](https://www.markdownlang.com "Link title")
[Reference link][1]
[1]: https://www.markdownlang.com "Link title"
<https://www.markdownlang.com>
<email@example.com>Markdown Images
markdown


[](https://www.markdownlang.com)Markdown Blockquotes
markdown
> This is a blockquote
>
> Second paragraph in blockquote
> Level 1 quote
> > Level 2 quote
> > > Level 3 quoteCode
Inline Code
markdown
Use `code` to mark inline codeCode Block
markdown
```
Regular code block
```
```javascript
// Code block with syntax highlighting
function hello() {
console.log("Hello, World!");
}
```Indented Code Block
markdown
This is an indented code block
Use 4 spaces or 1 tabMarkdown Tables
markdown
| Left Align | Center Align | Right Align |
|-----------|:------------:|------------:|
| Content1 | Content2 | Content3 |
| Content4 | Content5 | Content6 |Horizontal Rules
markdown
---
***
___
- - -Markdown Line Breaks
markdown
Method 1: Add two spaces at end of line
Then break line
Method 2: Use HTML tag<br>
Break line
Method 3: Separate by blank line
New paragraphEscaping Characters
markdown
\*not italic\*
\#not heading
\[not link\]Escapable characters:
\ Backslash
` Backtick
* Asterisk
_ Underscore
{} Curly braces
[] Square brackets
() Parentheses
# Hash
+ Plus
- Minus
. Period
! Exclamation markMarkdown Footnotes
markdown
Here is a footnote reference[^1].
[^1]: This is the content of the footnote.Markdown HTML Tags
markdown
Markdown supports inline HTML:
<strong>Bold</strong>
<em>Italic</em>
<mark>Highlight</mark>
<del>Delete</del>
<ins>Insert</ins>Markdown Math Formulas (Extended Syntax)
markdown
Inline formula: $E = mc^2$
Block formula:
$$
\sum_{i=1}^n a_i = 0
$$Markdown Quick Tips
Markdown Most Common Syntax
#- Heading**text**- Bold*text*- Italic[text](url)- Link- Image- item- List> quote- Blockquote`code`- Code
Memory Tricks
#Hash looks like stairs, indicates heading level*Asterisk means emphasis, one for italic, two for bold[]()Square brackets for text, parentheses for link![]()Exclamation mark for image>Greater-than looks like an arrow, points to quote