Mastering Markdown; A Cheatsheet from a Dev Who Loves Markdown (But Keeps Googling It)

I have a deep love for Markdown .It’s the magical tool that turns plain text into beautifully formatted documents. But here’s a little secret: even with over 10 years in tech, I still find myself googling how to format Markdown. So, I decided to write this cheatsheet to end my relentless web searches

Headers

Use `#` for headers. The number of `#` symbols at the beginning of the line indicates whether it's a heading 1, 2, 3, etc.

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

Emphasis

Use * or _ for emphasis.

*italic* or _italic_
**bold** or __bold__
***bold and italic*** or ___bold and italic___

Lists

Unordered List

Use -, *, or + for unordered lists.

- Item 1
- Item 2
  - Item 2a
  - Item 2b

Ordered List

Use numbers for ordered lists.

1. Item 1
2. Item 2
   1. Item 2a
   2. Item 2b

Use [text](URL) for links.

[Ali Raza](https://www.aliirz.com)

Images

Use ![alt text](URL) for images.

![Markdown Logo](https://markdown-here.com/img/icon256.png)

Blockquotes

Use > for blockquotes.

> This is a blockquote.

Code

Inline Code

Use backticks for inline code.

`code`

Code Blocks

Use triple backticks for code blocks.

```javascript
function helloWorld() {
console.log("Hello, world!");
}
```

Horizontal Rules

Use ---, ***, or ___ for horizontal rules.

---
***
___

Tables

Use | to create tables.

| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Strikethrough

Use ~~ to strikethrough text.

~~This was a mistake.~~

Task Lists

Use - [ ] for task lists.

- [x] Completed task
- [ ] Incomplete task

Footnotes

Use [^1] for footnotes.

Here is a footnote reference[^1].

Emoji

Use colons to include emoji.

:smile: :+1: :heart: