Markdown

Markdown is a lightweight markup language for formatting text easily. Here, we introduce some basic Markdown syntax.

Headings

Headings are created using #. The more # symbols there are, the lower the heading level.

Example:

### Heading 1

Content for Heading 1

#### Heading 2

Content for Heading 2

Rendered as:

Heading 1

Content for Heading 1

Heading 2

Content for Heading 2

Bold and Italic

  • Bold: Add ** or __ before and after the text.
  • Italic: Add * or _ before and after the text.

Example:

**This is bold**
_This is italic_

Rendered as:

This is bold
This is italic

Lists

Unordered List

Unordered lists can be created using -, +, or *.

Example:

- Item 1
- Item 2
- Item 3

Rendered as:

  • Item 1
  • Item 2
  • Item 3

Ordered List

Ordered lists are created using numbers followed by a period.

Example:

1. Item 1
2. Item 2
3. Item 3

Rendered as:

  1. Item 1
  2. Item 2
  3. Item 3

Links

Links are created using the format [Link Text](URL).

Example:

[Google](https://www.google.com)

Rendered as:

Google

Images

Images are created using the format ![Alt Text](Image URL).

Example:

![Sample Image](https://via.placeholder.com/150)

Rendered as:

Sample Image

Blockquotes

Blockquotes are created using >.

Example:

> This is a blockquote.

Rendered as:

This is a blockquote.

Code

Inline Code

Inline code is wrapped in backticks `.

Example:

`code`

Rendered as:

code

Multiline Code

Multiline code is wrapped in three backticks.

Example:

```ts
const message = 'Hello World!';

console.log(message);
```

Rendered as:

const message = 'Hello World!';

console.log(message);

Horizontal Rules

Horizontal rules are created using ---, ***, or ___.

Example:

---

Rendered as:


Tables

Tables are created using | and -.

Example:

| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Rendered as:

Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4