Markdown Cheat Sheet
What is Markdown?
Markdown is a lightweight way to format text using plain characters (like #, *, and []()), which many platforms (GitHub, Notion, Reddit, docs sites) render into styled content.
Key Benefits
- Developer Native: Markdown is my natural language for documentation, making the transition from notes to blog posts seamless.
- Built for Tech: It handles code blocks, technical headings, and complex links far more reliably than a visual editor.
- Speed & Clarity: Writing in plain text is faster, results in cleaner code, and is much easier to maintain over time.
- Portability: By using plain text, my content stays decoupled from any specific platform, preventing vendor lock-in and keeping my data future-proof.
Headings
| # H1
## H2
### H3
#### H4
|
Paragraphs & line breaks
| This is one paragraph.
This is another paragraph (separated by a blank line).
|
Forced line break (platform-dependent):
(That’s two spaces after “Line 1”.)
Emphasis
| **Bold**
*Italic*
~~Strikethrough~~
|
Blockquotes
| > This is a quote.
> It can span multiple lines.
|
Nested:
Lists
Bulleted list
| - Item 1
- Item 2
- Nested item (often 2 or 4 spaces also works)
|
Numbered list
| 1. First
2. Second
3. Third
|
Task list (GitHub/Notion support)
Links
Inline link
| [OpenAI](https://openai.com)
|
Reference-style links
| [Notion][notion]
[notion]: https://www.notion.so
|
Images
| 
|
With a linked image:
| [](https://example.com)
|
Code
Inline code
| Use `code` in a sentence.
|
Code block
| \```
const greeting = "Hello";
console.log(greeting);
\```
|
Syntax highlighting (common language tags)
js, ts, python, bash, json, yaml, sql, html, css
Tables (GitHub-flavored Markdown)
| | Column | Column |
|------:|:------:|
| Right | Center |
| 123 | abc |
|
Alignment:
:--- = left
---: = right
:---: = center
Horizontal rule (divider)
(Also works with *** or ___ in many parsers.)
Escaping characters
If Markdown tries to format something you want to show literally, escape it with a backslash:
| \*Not italic\*
\# Not a heading
|
Inline HTML (when supported)
Some platforms allow HTML inside Markdown:
| <span style="color: rebeccapurple;">Colored text</span>
|
Note: Not all renderers allow this (or may sanitize it).
Footnotes (supported in some parsers)
| Here is a statement with a footnote.[^1]
[^1]: Footnote text.
|
Mentions (platform-specific)
Some tools add special extensions (not standard Markdown), e.g. @username, issue links, or wiki links like [[Page Name]].
Common Markdown “gotchas”
- Blank lines matter: they separate paragraphs and often lists.
- Indentation affects nesting: especially for sub-lists and code blocks inside lists.
- Different renderers behave differently: GitHub, Notion, and Markdown-it don’t match 100%.