Markdown is a lightweight and easy-to-use syntax for styling text. It’s commonly used for documentation, blogging, and writing in code repositories like GitHub. Here's a comprehensive tutorial.
Use the #
symbol to create headings. The number of #
determines the level of the heading (1 to 6 levels).
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
- Bold: Use
**
or__
to bold text. - Italic: Use
*
or_
to italicize text. - Bold and Italic: Combine both.
**Bold Text**
*Italic Text*
***Bold and Italic Text***
Bold Text
Italic Text
Bold and Italic Text
Use numbers followed by a period for ordered lists.
1. First item
2. Second item
3. Third item
Use -
, +
, or *
for unordered lists.
- Item 1
- Item 2
- Sub-item 2.1
- Sub-item 2.2
- Item 3
- First item
- Second item
- Third item
- Item 1
- Item 2
- Sub-item 2.1
- Sub-item 2.2
- Item 3
Create links using the syntax [link text](URL)
.
[Visit Google](https://www.google.com)
Insert images using the syntax 
.

Use backticks `
for inline code.
Use `git status` to check the status.
Use triple backticks or tildes for multi-line code blocks. Specify the language for syntax highlighting.
```go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
### Output:
```go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
Create tables using |
and -
.
| Name | Age | Country |
|---------|-----|---------|
| Alice | 25 | USA |
| Bob | 30 | UK |
| Charlie | 22 | Canada |
Name | Age | Country |
---|---|---|
Alice | 25 | USA |
Bob | 30 | UK |
Charlie | 22 | Canada |
Use >
for blockquotes.
> This is a blockquote.
> You can write multiple lines.
This is a blockquote.
You can write multiple lines.
Use ---
, ***
, or ___
for horizontal rules.
---
Create task lists using - [ ]
for unchecked and - [x]
for checked items.
- [x] Task 1
- [ ] Task 2
- [ ] Task 3
- Task 1
- Task 2
- Task 3
You can also use HTML tags in Markdown.
<p style="color: red;">This is a red text.</p>
This is a red text.
Markdown is a powerful and easy tool for documentation. With this tutorial, you can format your content effectively.