Markdown Cheat Sheet
This cheat sheet provides a quick reference for the most commonly used Markdown syntax elements. Use it as a handy guide while writing your Markdown documents.
Basic Syntax
Element | Markdown Syntax |
---|---|
Heading 1 | # Heading 1 |
Heading 2 | ## Heading 2 |
Heading 3 | ### Heading 3 |
Bold | **bold text** |
Italic | *italic text* |
Bold & Italic | ***bold & italic*** |
Strikethrough | ~~strikethrough~~ |
Unordered List | - List item - Another item |
Ordered List | 1. First item 2. Second item |
Link | [Link text](URL) |
Image |  |
Inline Code | `code` |
Blockquote | > Blockquote text |
Horizontal Rule | --- or *** or ___ |
Line Break | End a line with two spaces |
Extended Syntax
Element | Markdown Syntax |
---|---|
Table | | Header | Header | |--------|--------| | Cell | Cell | |
Aligned Table | | Left | Center | Right | |:-----|:------:|------:| | Cell | Cell | Cell | |
Task List | - [ ] Task - [x] Done |
Fenced Code Block | ```language code block ``` |
Footnote | Text[^1] [^1]: Footnote |
Definition List | Term : Definition |
Mermaid Diagram | ```mermaid graph TD A --> B ``` |
Math Equation | $E = mc^2$ |
Emoji | :smile: :heart: |
Highlight | ==highlighted text== |
Subscript | H~2~O |
Superscript | X^2^ |
Quick Reference Examples
Basic Document Structure
# Main Title ## Section 1 Content goes here... ## Section 2 - List item 1 - List item 2 > Important note here
Advanced Formatting
| Feature | Support | |---------|---------| | Tables | ✅ | | Lists | ✅ | | Code | ✅ | - [ ] Task 1 - [x] Task 2 :smile: Happy coding!
Tips & Tricks
- Use # for headings (1-6 levels)
- Use ** or __ for bold text
- Use * or _ for italic text
- Use ` for inline code
- Use ``` for code blocks with syntax highlighting
- Use > for blockquotes
- Use - or * for unordered lists
- Use 1. for ordered lists
- Use --- for horizontal rules
- Use [text](url) for links
- Use  for images