Markdown Cheat Sheet

Headings

# H1
## H2
### H3
#### H4
##### H5
###### H6

H1

H2

H3

H4

H5
H6

Text Formatting

**Bold Text** or __Bold Text__
*Italic Text* or _Italic Text_
~~Strikethrough~~
`Inline code`
Superscript: X^2^
Subscript: H~2~O

Bold Text or Bold Text

Italic Text or Italic Text

Strikethrough

Inline code

Superscript: X2

Subscript: H2O

Lists

1. Ordered item 1
2. Ordered item 2
   1. Nested ordered item

- Unordered item (or * or +)
- Another item
  - Nested unordered item
  1. Ordered item 1
  2. Ordered item 2
    1. Nested ordered item
  • Unordered item
  • Another item
    • Nested unordered item

Code Blocks

```javascript
function greet(name) {
  console.log(`Hello, ${name}!`);
}
greet('World');
```
function greet(name) {
  console.log(`Hello, ${name}!`);
}
greet('World');

Tables

| Syntax      | Description |
| :---------- | :----------: |
| Header      | Title       |
| Paragraph   | Text        |
SyntaxDescription
HeaderTitle
ParagraphText

Blockquotes

> This is a blockquote.
> It can span multiple lines.

This is a blockquote.

It can span multiple lines.

Horizontal Rule

--- (Or *** or ___)