Markdown Cheatsheet

Quick reference for the most commonly used Markdown syntax

Heading 1

Largest heading

Headers
# Heading 1

Heading 2

Second level heading

Headers
## Heading 2

Heading 3

Third level heading

Headers
### Heading 3

Heading 4-6

Smaller headings

Headers
#### Heading 4
##### Heading 5
###### Heading 6

Bold

Make text bold

Text Formatting
**bold text** or __bold text__

Italic

Make text italic

Text Formatting
*italic text* or _italic text_

Bold & Italic

Combine bold and italic

Text Formatting
***bold and italic*** or ___bold and italic___

Strikethrough

Strike through text

Text Formatting
~~strikethrough text~~

Inline Code

Inline code snippet

Text Formatting
`inline code`

Blockquote

Quote text

Text Formatting
> This is a blockquote
> It can span multiple lines

Unordered List

Bullet points list

Lists
- Item 1
- Item 2
  - Nested item
  - Another nested item
- Item 3

Ordered List

Numbered list

Lists
1. First item
2. Second item
3. Third item
   1. Nested item
   2. Another nested item

Task List

Checklist with checkboxes

Lists
- [x] Completed task
- [ ] Incomplete task
- [ ] Another task

Link

Hyperlink to URL

Links & Images
[Link text](https://example.com)

Link with Title

Link with hover title

Links & Images
[Link text](https://example.com "Title on hover")

Image

Embed an image

Links & Images
![Alt text](https://example.com/image.jpg)

Image with Title

Image with hover title

Links & Images
![Alt text](https://example.com/image.jpg "Image title")

Code Block

Multi-line code block

Code Blocks
```
code line 1
code line 2
code line 3
```

Code with Syntax Highlighting

Code block with language

Code Blocks
```javascript
const greeting = 'Hello World';
console.log(greeting);
```

Python Code

Python code example

Code Blocks
```python
def hello():
    print("Hello World")
```

Basic Table

Simple table structure

Tables
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Row 1    | Data     | Data     |
| Row 2    | Data     | Data     |

Aligned Table

Table with column alignment

Tables
| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |
| Left | Center | Right |

Horizontal Rule

Horizontal dividing line

Dividers
---
or
***
or
___

Footnote

Add footnote reference

Advanced
Here's a sentence with a footnote[^1].

[^1]: This is the footnote content.

Definition List

Term and definition pairs

Advanced
Term 1
: Definition 1

Term 2
: Definition 2a
: Definition 2b

Abbreviation

Define abbreviations

Advanced
The HTML specification is maintained by W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium

Emoji

Use emoji shortcodes

Advanced
:smile: :heart: :thumbsup: :rocket:

Escape Characters

Escape markdown syntax

Advanced
\* Not italic \*
\# Not a heading
\[Not a link\]

HTML in Markdown

Embed raw HTML

Advanced
<div style="color: red">
  Custom HTML content
</div>

Mermaid Diagram

Create diagrams with Mermaid

Advanced
```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```
Showing 30 of 30 examples