Introduction

Markdown is a lightweight markup language that use to add formatting elements to plaintext documents.

Table of contents

1. Heading:

To create heading, add one to six # symbols before your heading. The number of # will determine the size of heading.

Syntax

# H1
## H2
### H3
#### H4
##### H5
###### H6

Preview

H1

H2

H3

H4

H5
H6

2. Emphasis:

You can add emphasis by making text bold or italic.

Syntax

**This text is bold.**
__This text is bold.__

*This text is italic.*
_This text is italic._

Preview

This text is bold. This text is bold.

This text is italic. This text is italic.

3. Lists:

Markdown supports ordered or unordered lists.

  • Ordered: using number
  • Unordered: using -,* or +

Syntax

- item1
  - item1.1
    - item1.1.1
* item2
+ item3

1. item1
2. item2

Preview

  • item1
    • item1.1
      • item1.1.1
  • item2
  • item3
  1. item1
  2. item2

To create the link, enclose the link text in brackets [], and then follow it immediately with the URL in parentheses().

Syntax

Click this link [urlName](https://www.github.com)

Preview

Click this link urlName

5. Images:

Images are similar to link but with and exclamation mark ! in front.

Syntax

This is my image ![imageName](C:\Users\phong.nguyen-van\Desktop\datasets\blog\phongnv.es\resources\_gen\images\images\msg_hu1084214322766098934.png)

Preview

This is my image imageName

6. Code Blocks:

For inline code, use backticks `. For block code, use triple backticks ```.

Syntax

`printf("This is a line code.");`
```java \n printf("This is a line code."); \n ```

Preview

printf("This is a line code.");

printf("This is a line code.");
pulic class Java(){}

7. Tables:

Tables in Markdown use the pipes | and dashes - to create a grid.

Syntax

| Header 1 | Header 2 |
|----------|----------|
| Row 1    | Data 1   |
| Row 2    | Data 2   |

Preview

Header 1 Header 2
Row 1 Data 1
Row 2 Data 2

8. Blockquote:

Use the > symbol to create a blockquote.

Syntax

> This is blockquote.
> This is blockquote.
> This is blockquote.

Preview

This is blockquote. This is blockquote. This is blockquote.

9. Horizontal Rules:

Use ---,*** or ___ on a new line to create a horizontal rule.

Syntax

---
a
b
c

Preview


a b c

10. Advanced Features:

10.1. Task Lists

Syntax

- [x] Task 1
- [ ] Task 2

Preview

  • Task 1
  • Task 2

10.2. Footnotes

Syntax

Here is a simple footnote[^1].

[^1]: This is the footnote.

Preview

Here is a simple footnote1.


  1. This is the footnote. ↩︎