Why Markdown Matters for Developers
Markdown is the lingua franca of developer documentation: READMEs, pull requests, issue comments, wikis, changelogs, blog posts, and technical documentation all use it. Knowing its full feature set — especially GitHub-Flavored Markdown (GFM) — makes you a noticeably better communicator.
Headings
# H1 — Page title (one per document)
## H2 — Major section
### H3 — Subsection
#### H4 — Sub-subsection
Text Formatting
**bold text**
*italic text*
***bold and italic***
~~strikethrough~~
`inline code`
==highlight== (some renderers)
Links and Images
[Link text](https://example.com)
[Link with title](https://example.com "Hover tooltip")
[Reference link][id]
[id]: https://example.com "Optional title"


[](https://example.com)
HTML is valid in most Markdown renderers for size control:
<img src="logo.png" alt="Logo" width="200">
Code Blocks
Inline code
Use `console.log()` to debug.
Fenced code blocks with syntax highlighting
```javascript
const greet = (name) => `Hello, ${name}!`;
```
```python
def greet(name: str) -> str:
return f"Hello, {name}!"
```
```bash
#!/bin/bash
echo "Hello, World!"
```
Common language identifiers: javascript, typescript, python, go, rust, java, bash, shell, sql, yaml, json, dockerfile, markdown, html, css, diff, plaintext
Diff syntax
```diff
- const old = "removed line";
+ const new = "added line";
const unchanged = "same";
```
Lists
# Unordered
- Item 1
- Item 2
- Nested item (2 spaces or 1 tab)
- Another nested
- Item 3
# Ordered
1. First step
2. Second step
3. Third step
# Task list (GitHub-Flavored Markdown)
- [x] Write tests
- [x] Implement feature
- [ ] Update documentation
- [ ] Deploy to staging
Tables (GitHub-Flavored Markdown)
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Column alignment
| Left | Center | Right |
|:-----|:------:|------:|
| text | text | text |
| 1 | 2 | 3 |
:---= left align:---:= center align---:= right align
Tips for complex tables
- Inline code works in cells:
`code` - Links work in cells:
[text](url) - Bold and italic work in cells
- HTML
<br>works for multi-line cells
Blockquotes
> Simple blockquote
> Multi-line blockquote
> continues here
> **Note:** With **formatting** inside
> Nested blockquote
>> Second level
GitHub Alerts (newer GFM)
> [!NOTE]
> Highlights information that users should take into account.
> [!TIP]
> Optional information to help a user be more successful.
> [!IMPORTANT]
> Crucial information necessary for users to succeed.
> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.
> [!CAUTION]
> Negative potential consequences of an action.