Basics of Markdown

Markdown is a lightweight markup language for formatting plain text.

1. Headings

Use # characters:

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

Result:

Heading 1

Heading 2

Heading 3


2. Paragraphs

Separate paragraphs with a blank line.

This is the first paragraph.

This is the second paragraph.

3. Bold

Use ** or __:

**bold text**
**bold text**

Result:

bold text


4. Italic

Use * or _:

_italic text_
_italic text_

Result:

italic text


5. Bold and Italic

_**bold and italic**_
_**bold and italic**_

Result:

bold and italic


6. Strikethrough

Use ~~:

~~deleted text~~

Result:

deleted text


[OpenAI](https://openai.com)

Result:

OpenAI


8. Images

![Alt text](image.png)

The text inside [] describes the image.


9. Unordered Lists

Use -, *, or +:

- Apple
- Banana
- Orange

Result:


10. Ordered Lists

Use numbers:

1. First
2. Second
3. Third

Result:

  1. First
  2. Second
  3. Third

The numbers do not have to be manually maintained:

1. First
1. Second
1. Third

11. Nested Lists

Indent nested items:

- Fruit
  - Apple
  - Banana
- Vegetables
  - Carrot
  - Potato

12. Checkboxes

- [ ] Todo
- [x] Completed

Result:


13. Inline Code

Use backticks:

Run `npm install` to install dependencies.

Result:

Run npm install to install dependencies.


14. Code Blocks

Use triple backticks:

```js
const name = "Marvin";
console.log(name);
```