Markdown

Anjali SainiAnjali Saini
4 min read

What is Markdown?

Lightweight markup language with a plain text formatting syntax.

can be converted into HTML/XHTML and others formats.

it's main purpose is readability and ease of use.

What is it used for?

Readme Files(Github,etc)

Forum & Blog posts

Used in many static Generators

Some thing you can format

Heading ,Bold ,Italic, Bold italic,Lists, Images, Emphasis, Blockquotes, Links, Horizontal Rules

Heading:-

To create a heading, add number signs (#) in front of a word or phrase. The number of number sign you use should correspond to the heading level.

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

Result:-

This is Heading 1

This is Heading 2

This is Heading 3

This is Heading 4

This is Heading 5
This is Heading 6

Bold:-

Bold text can be created by surrounding text with either double asterisks(**) or double underscores(__).

**Bold text**

__Also Bold text__

Result:-

Bold text

Also Bold text

Italic:-

To italicize text, add one asterisk or underscore before and after a word or phrase. To italicize the middle of a word for emphasis, add one asterisk without spaces around the letters.

*Italic*

_Also Italic_

Result:-

Italic

Also Italic

Bold and Italic:-

To emphasize text with bold and italics at the same time, add three asterisks or underscores before and after a word or phrase. To bold and italicize the middle of a word for emphasis, add three asterisks without spaces around the letters.

This text is ***Amazing***.

This text is ___Amazing___.

Result:-

This text is Amazing.

This text is Amazing.

Horizontal Rules:-

To create a horizontal rule, use three or more asterisks (*), dashes (---), or underscores (___) on a line by themselves.

***
or
---
or
_________________

Result:-


Blockquotes:-

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

>A positive mindset brings positive things

Result:-

A positive mindset brings positive things

Nested Blockquotes:-

Yes, Blockquotes can be nested. Add a >> in front of the paragraph you want to nest. And add a > on the blank lines between the paragraphs.

>When things go wrong ,don't go with them
>
>>Positivity always wins

Result:-

When things go wrong ,don't go with them

Positivity always wins

Lists:-

You can organize items into -

_ordered

_unordered lists.

ordered lists:-

To create an ordered list, add line items with the numbers followed by periods. The numbers don’t have to be in numerical order, but the list start with the number one.

1. One 
2. Two
3. Three
4. Four

//or

1. One 
1. Two
1. Three
1. Four
//or

1. One 
3. Two
8. Three
4. Four

Result:-

1.One

2.Two

3.Three

4.Four

##Sub list:-

Here how you can add sublist in your ordered list

1. First 
2. Second 
3. Third 
    1. one
    1. two
4. Fourth

Result:-

  1. First
  2. Second
  3. Third
    1. one
    2. two
  4. Fourth

    Unordered Lists:-

To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items. Indent one or more items to create a nested list

- First 
- Second 
- Third 
- Fourth 

//or

* First 
* Second 
* Third 
* Fourth 

//or

+ First 
+ Second 
+ Third 
+ Fourth

Result:-

  • First

  • Second

  • Third

  • Fourth

image:-

For images we have to use ! braces.

![Markdown](https://tse3.mm.bing.net/th?id=OIP.4j-hxN6YCU_Yp9l1UxLgSwAAAA&pid=Api&P=0)

Result:- Markdown

Link:-

To create a link, enclose the link text in brackets (e.g., [Google]) and then follow it immediately with the URL in parentheses (e.g., (google.com)).

[Google](https://google.com )
<https://google.com>

Result:-

Google

https://google.com

#Code snippets:-

Use back ticks--->, you can find it right above tab key on keyboard three back ticks for multiple lines of code, one for single word

0
Subscribe to my newsletter

Read articles from Anjali Saini directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Anjali Saini
Anjali Saini

I am an Enthusiastic and self-motivated web-Developer . Currently i am learning to build end-to-end web-apps.