Here’s a hands-on guide showing you how to use Markdown with examples of all the key features:
1. Headings
You can create headings by using # symbols. More # means a smaller heading.
Result:
Heading 1
Heading 2
Heading 3
Heading 4
2. Bold and Italics
You can format text in bold, italic, or bold and italic.
Result:
- Bold Text
- Italic Text
- Bold and Italic Text
3. Lists
Unordered List:
Use -, *, or + to create bullet points.
Ordered List:
Use numbers followed by a period.
Result:
- Item 1
- Item 2
- Item 3
- First
- Second
- Third
4. Links
Create a link using [Link Text](URL).
Result: Visit GitHub
5. Images
Insert an image using .
Result:
6. Blockquotes
Use > to create a blockquote.
Result:
This is a blockquote.
7. Code Blocks
You can insert inline code using backticks (`) or block code using triple backticks (```).
For code blocks:
8. Horizontal Line
Use ---, ***, or ___ to create a horizontal rule.
Result:
9. Task Lists
You can create task lists with - [ ] for incomplete and - [x] for completed tasks.
Result:
- Task 1
- Task 2
10. Tables
Use pipes (|) and dashes (-) to create tables.
Result:
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Item 1 | Item 2 | Item 3 |
11. Strikethrough
Strike through text using ~~.
Result:
This text is struck through
12. Footnotes
Create footnotes with [^1] for reference and [^1]: text for the actual footnote.
Result: This is a footnote reference1.
13. Escaping Characters
Use a backslash (\) to escape Markdown special characters like #, *, or _.
Result:
# Not a heading
*Not italic*
No comments:
Post a Comment