Markdown cheat sheet
Plain text with a few symbols. Save as .md.
Where to write it
- Any text editor: save the file as
.md - VS Code: preview with
Ctrl+Shift+V - Obsidian: notes app built on Markdown files
- GitHub: READMEs, issues, and comments
- AI chat: ask for an answer “in Markdown”
The core: works everywhere
| You want | You type |
|---|---|
| Heading | # Title and ## Section |
| Paragraph | A blank line between |
| Bold | **bold** |
| Italic | *italic* or _italic_ |
| Bullets | - item |
| Numbers | 1. item |
| Link | [text](url) |
| Image |  |
| Code | `code` |
| Code block | ```python … ``` |
| Quote | > text |
| Divider | --- after a blank line |
Level up: GitHub flavor
| You want | You type |
|---|---|
| Task list | - [ ] to do, - [x] done |
| Table | | A | B | then |---|---| |
| Strikethrough | ~~old~~ |
| Diagram | ```mermaid code block |
Works on GitHub and in most editors, but not always in chat apps.
Gotchas
- No blank line, no new paragraph. Two lines in a row join into one.
- Nest a list by indenting two spaces.
- Put a space after the symbol:
# Title, not#Title. - Show a symbol as-is with a backslash:
\*not italic\*. - Chat apps have their own rules. The same characters can mean something else there.