Markdown Basics
April 5, 2025 · 318 words
This article covers the basics of Markdown syntax.
In Markdown, you can use \ to escape special characters.
1. Headings
Syntax
# This is an <h1> tag
## This is an <h2> tag
### This is an <h3> tag
#### This is an <h4> tag
Example
This is an h1 tag
This is an h2 tag
This is an h3 tag
This is an h4 tag
2. Bold and Italic
Syntax
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
Example
This text will be italic This will also be italic
This text will be bold This will also be bold
3. Ordered and Unordered Lists
Syntax
* Item 1
* Item 2
* Item 3
1. Item 1
2. Item 2
3. Item 3
Example
- Item 1
- Item 2
- Item 3
- Item 1
- Item 2
- Item 3
4. Images
Syntax

Example

5. Links
Syntax
[link-name](link-url)
Example
6. Quotes
Syntax
> Quotes are used to cite text from another source.
Example
If you please draw me a sheep! A soldier who doesn't want to be a general is not a good soldier.
7. Inline Code
Syntax
`This is inline code.`
Example
Inline code is useful for technical terms.
8. Code Blocks
Syntax
```js
for (var i=0; i<100; i++) {
console.log("hello world" + i);
}
```
Example
for (var i=0; i<100; i++) {
console.log("hello world" + i);
}
You can also indent lines to show code. Example:
console.log("Hello_World");
9. Tables
Table
| Table Header 1 | Table Header 2 | Table Header 3 |
|---|---|---|
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |