All About Markdown

Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. It is now one of the world’s most popular markup languages for writing formatted text.

Markdown files are generally created by developers to write down detail explanation of their projects which comes as README.md file, this md extension simply says its a markdown file.

Not only this even Hashnode , Medium etc. uses Markdown to write blogs. So, let me walk you through it. Let's get started.

1. Heading

Headings are denoted by #(Hash). Lesser the Number of # higher is the font size.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Output

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

2. Text Formatting

a) Bold

If you want to bold your text use ** or __

This blog is so **important**
This blog is so __important__

Output

This blog is so important

b) Italic

For italic text use * or _

Follow me on *instagram*
Follow me on _instagram_

Output

Follow me on instagram

c) Strike

For Strike through use ~~ symbol.

If you have any doubt in ~~React~~ HTML and CSS dm me on instagram

Output

If you have any doubt in React HTML and CSS dm me on instagram

2. List

a) ordered

For ordered list simply use number.

1. First item
2. Second item
3. Third item
    1. Indented item
    2. Indented item
4. Fourth item

Output

  1. First item
  2. Second item
  3. Third item
    1. Indented item
    2. Indented item
  4. Fourth item

b) unordered

For unordered list simply use - or * or +.

- First item
- Second item
- Third item
    - Indented item
    - Indented item
- Fourth item

Output

  • First item
  • Second item
  • Third item
    • Indented item
    • Indented item
  • Fourth item

To insert a link use

[Blog](https://prashu.hashnode.dev/)

Output

Blog

4. Image

We can insert image from local machine or from browser too.

![LCO](https://learncodeonline.in/mascot.png)

Output

LCO

5. Blockquotes

To create a blockquote, add a > in front of a paragraph.

If every day you keep getting better, you end up being the best.” ― Amit Kalantri

Output

If every day you keep getting better, you end up being the best.” ― Amit Kalantri

6. Code

a) Inline code

To denote a word or phrase as code, enclose it in backticks (`).

Writing an `efficient code` is always preferable

Output

Writing an efficient code is always preferable

b) code block

To show code block snippet use end with backticks.

Output

if (isServer && user) {
  store.userStore.currentUser = user;
}

7. Horizontal Rule

To create a horizontal rule, use three or more asterisks (* ), dashes (---)

Output


Thank you, Please like it if it is adding value to you.