Markdown Cheat Sheet
This Markdown cheatsheet provides a quick reference guide for creating structured and visually appealing documents.
Introduction
Markdown is a lightweight markup language that allows you to format text easily, without the complexity of HTML. Whether you’re a beginner or an experienced user, this Markdown cheatsheet provides a quick reference guide for creating structured and visually appealing documents. From headings and text formatting to links, images, and code snippets, this comprehensive cheatsheet covers a range of Markdown elements. Use it as a handy reference as you compose README files, documentation, or any text where simplicity and readability matter.
Basic Elements
Element | Syntax | Example |
---|---|---|
Heading 1 | # Heading 1 | # This is a Heading 1 |
Heading 2 | ## Heading 2 | ## This is a Heading 2 |
Heading 3 | ### Heading 3 | ### This is a Heading 3 |
Bold text | **Bold text** | **This text is bold** |
Italic text | *Italic text* | *This text is italicized* |
Bold and Italic text | ***Bold and Italic text*** | ***This text is bold and italicized*** |
Link | [Link text](http://example.com) | [Visit Google](http://www.google.com) |
Reference Link | [Link text][1] | [Visit Google][1] |
Image | ![Alt text](image.jpg) | ![Sample Image](sample.jpg) |
Reference Image | ![Alt text][2] | ![Sample Image][2] |
Unordered List | - Item 1 | - Item 1 |
Nested Unordered List | - Subitem 1 | - Subitem 1 |
Ordered List | 1. Item 1 | 1. Item 1 |
Task List | - [x] Task 1 | - [x] Task 1 |
- [ ] Task 2 | - [ ] Task 2 | |
Blockquote | > Quote | > This is a quote |
Code | `inline code` | `print(“Hello, World!”)` |
Code Block (Multiline) | ``` | ```python |
def func(): | ||
print(“Hello, World!”) | ||
``` | ||
Horizontal Line | --- or *** or ___ | --- |
Table | | Header 1 | Header 2 | | | ———- | ———- | |
| Cell 1 | Cell 2 | | | Row 1 | Row 1 | |
Feel free to explore these elements and integrate them into your Markdown documents!