Markdown Cheat Sheet: A Quick Reference for Developers
4 min read
Markdown is the standard for writing technical content - README files, documentation, comments, and chat messages. Here's every syntax feature you'll need.
Text Formatting
**bold** or __bold__
*italic* or _italic_
~~strikethrough~~
`inline code`
Headings
# Heading 1
## Heading 2
### Heading 3
Links and Images
[Link text](https://example.com)

Lists
- Unordered item
- Another item
- Nested item
1. Ordered item
2. Second item
Code Blocks
Wrap code in triple backticks with an optional language identifier:
```javascript
function hello() {
console.log("Hello, world!");
}
```
Tables
| Column 1 | Column 2 |
|----------|----------|
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
Blockquotes
> This is a blockquote.
> It can span multiple lines.
Try It Live
The Markdown Preview tool lets you write Markdown on the left and see the rendered HTML on the right, updating in real time. It's perfect for drafting README files, documentation, or blog posts before committing them.
Try the tool mentioned in this article
Open tool