Markdown Cheatsheet
Whether you’re writing README files, blog posts, or taking notes, Markdown makes formatting text easy and efficient. This handy cheatsheet covers all the essential Markdown syntax—from headers, lists, and links to images, code blocks, and tables. This guide helps you write clean, readable, and well-structured content with minimal effort. Bookmark it for quick access whenever you need a refresher!
Headings
The following HTML <h1>
—<h6>
elements represent six levels of section headings. <h1>
is the highest section level while <h6>
is the lowest.
H1
H2
H3
H4
H5
H6
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Paragraph
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl est, vehicula ac ex a, fermentum malesuada turpis. Morbi nec libero volutpat, laoreet quam at, pharetra nisl. Nulla feugiat scelerisque tincidunt. Aenean tristique convallis ipsum semper ornare. Nullam semper tristique ipsum, quis bibendum mauris rutrum eget. Mauris risus lacus, laoreet id volutpat at, tempor non sem. Proin ultrices justo at ultricies dictum. Nunc a dui congue, tincidunt purus quis, lobortis lectus. Duis tincidunt felis ut est euismod auctor.
Suspendisse potenti. Etiam metus justo, lacinia a faucibus in, euismod a velit. Nunc a pretium urna, quis tempor neque. Vivamus blandit venenatis venenatis. Pellentesque malesuada elit aliquam consectetur mollis. Proin commodo nibh tellus, a volutpat lectus scelerisque et. Suspendisse consectetur laoreet leo, non egestas purus sagittis at. Ut sed est mi. Maecenas vel placerat risus. In ornare lobortis risus nec dapibus. Fusce sed faucibus purus, a iaculis tellus. Nunc malesuada elit nec dui semper, vitae tincidunt felis iaculis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nisl est, ...
Suspendisse potenti. Etiam metus justo, lacinia a faucibus in, euismod a ...
Styling
Bold can be noted with either * or -, but can only be noted with * mid word
Italics can be noted with either * or -, but can only be noted with * mid word
Bold and Italics can be noted with either * or -, but can only be noted with * mid word
Strikethrough can be noted with either ~ or ~~
Bold can be **noted** with either * or -, __but__ can only be noted with * mid w**or**d
Italics can be *noted* with either * or -, _but_ can only be noted with * mid w*or*d
Bold and Italics can be ***noted*** with either * or -, ___but___ can only be noted with * mid w***or***d
Strikethrough can ~be~ noted ~~with~~ either ~ or ~~
Images
Syntax

Output
Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer
or cite
element, and optionally with in-line changes such as annotations and abbreviations.
Blockquote without attribution
Syntax
> Sed pellentesque mauris ex, eu tristique justo feugiat vitae.
> **Note** that you can use _Markdown syntax_ within a blockquote.
Output
Sed pellentesque mauris ex, eu tristique justo feugiat vitae.
Note that you can use Markdown syntax within a blockquote.
Blockquote with attribution
Syntax
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
Output
Don’t communicate by sharing memory, share memory by communicating.
— Rob Pike1
Tables
Unalined Tables
Syntax
| Fruit | Amount |
|-------|--------|
| Apple | 10 |
| Pear | 5 |
Output
Fruit | Amount |
---|---|
Apple | 10 |
Pear | 5 |
Alined Tables
Syntax
| Left | Center | Right |
|:-------|:--------:|--------:|
| Apple | 10 | 10 |
| Pear | 5 | 5 |
Left | Center | Right |
---|---|---|
Apple | 10 | 10 |
Pear | 5 | 5 |
Code Blocks
Syntax
we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntax, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
Output
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
List Types
Ordered List
Syntax
1. First item
2. Second item
3. Third item
Output
- First item
- Second item
- Third item
Unordered List
Syntax
- List item
- Another item
- And another item
Output
- List item
- Another item
- And another item
Nested list
Syntax
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
Output
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
Other Elements — abbr, sub, sup, kbd, mark
Syntax
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Output
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL + ALT + Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
You have now finished the markdown cheatsheet!
// Miyarima