Markdown Quick Tutorial
Markdown Quick Tutorial: The Essentials in 5 Minutes
Markdown is a lightweight markup language for formatting plain text. It’s perfect for notes, docs, and even websites (like GitHub READMEs). Here’s all you need to know:
1. Basic Formatting
| Style | Markdown | Output |
|---|---|---|
| Bold | **bold** |
bold |
| Italic | *italic* |
italic |
~~strike~~ |
||
Code |
`code` |
code |
| Link | [text](URL) |
|
| Image |  |
(Shows image) |
2. Headings
# Heading 1 (Biggest)
## Heading 2
### Heading 3
#### Heading 4
3. Lists
Bullet Points
- Item 1
- Item 2
- Sub-item (indent with 2 spaces)
Numbered Lists
1. First
2. Second
3. Third
4. Code Blocks
Inline Code
Use `print("Hello")` in Python.
Multi-line Code
Use triple backticks + language name:
```python
def hello():
print("World")
```
(Shows with syntax highlighting!)
5. Tables
| Name | Age | Job |
|---------|-----|----------|
| Alice | 25 | Engineer |
| Bob | 30 | Designer |
Renders as:
| Name | Age | Job |
|---|---|---|
| Alice | 25 | Engineer |
| Bob | 30 | Designer |
6. Blockquotes
> This is a quote.
> - Author
This is a quote.
- Author
7. Horizontal Line
---
8. Escaping Characters
Use \ before special chars (e.g., \* shows * literally).
Where to Use Markdown?
- GitHub/GitLab (README.md, docs)
- Terminal notes (with
micro,glow, orvim) - Pandoc (convert to PDF/Word)
- Static websites (like Hugo, Jekyll)
Cheat Sheet
# Heading
**Bold** *Italic*
- List
1. Ordered
`code`
[Link](URL)

| Table |
> Quote
---
Now go write something! ✍️
(Preview with glow filename.md in terminal!)
generated by:deepseek
Comments
Post a Comment