Markdown is a lightweight markup language that lets you format plain text documents. Here's a comprehensive guide:
Basic Text Formatting
Bold text: Use double asterisks **text** or double underscores __text__
- Example:
**This is bold** → This is bold
Italic text: Use single asterisks *text* or single underscores _text_
- Example:
*This is italic* → This is italic
Bold and italic: Use triple asterisks ***text***
- Example:
***This is both*** → This is both
Strikethrough: Use double tildes ~~text~~
- Example:
~~This is crossed out~~ → This is crossed out
Headers
Headers are created using hash symbols (#). The number of hashes determines the header level:
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
Lists
Unordered lists: Use asterisks (*), hyphens (-), or plus signs (+)
* First item
* Second item
* Nested item
* Another nested item
* Third item
Ordered lists: Use numbers followed by periods
1. First item
2. Second item
1. Nested item
2. Another nested item
3. Third item
Links and Images
Links: [display text](URL)
Images: 
- Example:

Code
Inline code: Use single backticks `code`
- Example:
`print("Hello")` → print("Hello")
Code blocks: Use triple backticks with optional language specification
```python
def hello():
print("Hello, World!")
```
Blockquotes
Use the greater-than symbol (>) at the beginning of lines:
> This is a blockquote
> It can span multiple lines
>> You can even nest them
Horizontal Rules
Create horizontal lines using three or more hyphens (---), asterisks (***), or underscores (___)
---
Tables
Tables use pipes (|) and hyphens (-):
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
You can align columns using colons:
| Left-aligned | Center-aligned | Right-aligned |
|:-------------|:--------------:|--------------:|
| Left | Center | Right |
Escaping Characters
To display special markdown characters literally, use a backslash ():
- Example:
\*This won't be italic\* → *This won't be italic*
Line Breaks
To create a line break without starting a new paragraph, end a line with two spaces or use <br>.
Task Lists
Some markdown processors support task lists:
- [x] Completed task
- [ ] Incomplete task
- [ ] Another task
This covers the most common markdown syntax. Different platforms (GitHub, Reddit, Discord, etc.) may have slight variations or additional features, but these basics work almost everywhere that supports markdown.