Markdown cheat sheet
Today, we are going to read about Markdown and I am going to create a Markdown Cheat Sheet.
What is Markdown?
Should we need to know about Markdown?
Where to use Markdown?
You will learn the Markdown’s major commands that will help you create an GitHub README file.
Markdown for headings
- # heading1
- ## heading2
- ### heading3
- #### heading4
- ##### heading5
OUTPUT will be:
heading 1
heading 2
heading 3
heading 4
heading 5
How to create bold text.
There are two ways to create bold text.
1. **bold**
2. __bold__
The output will be
bold
bold
Also, there are two ways to create Italic text.
You are using two Asterisk(**) and two underscore(__) sign to make text bold. But now, for italic you will have to use single signs on both side.
*Italic*
_Italic_
Output will be
Italic
Italic
Now, let's move ahead.
Many of you people have seen on ecommerce websites there is a line over the price during the sale. So, for that you have to encapsulate the text or anything inside the
~~23~~
Ordered List
To create order list just use:
1. one
2. two
1. one
Output will be
one
two
- one
Unordered list
To create unorder list
- one
- two
- three
Output is going to be:
- one
- two
- three
How to create a link using Markdown
[Home](https://google.com)
1. Home is the text which will render and when user click on the Home he will move to
google.com..
Output going to be:
How to insert image using Markdown
The syntax will going to be:
![image](https://static.xx.fbcdn.net/rsrc.php/y8/r/dF5SId3UHWd.svg)
Output will be:
You can also create a code editor using this sign
```
for(let i=0;i<2;i++>){
console.log(i);
}
```
Output will be:
for(let i=0;i<2;i++>){
console.log(i);
}
If you want to mark things like this
use below syntax:
`this`
Output will be:
this
You can also create the table using Markdown. You below syntax to create table.
| Syntax | Description |
| - | - |
| Header | Title |
| Paragraph | Text |
The output is going to be
Syntax | Description |
Header | Title |
Paragraph | Text |
These are the list of commands that we have read above:
Number | Description | Syntax |
1 | Create Heading | # heading1 |
2 | Create Heading | ## heading2 |
3 | Create Heading | ### heading3 |
4 | Create Heading | #### heading4 |
5 | Create Heading | ##### heading5 |
6 | Create text bold | **bold** __bold__ |
7 | Create text italic | *Italic* _Italic_ |
8 | Create line over text | ~~123~~ |
9 | Order list | 1. order list |
10 | Unorder list | - unorder list |
11 | Create link | [Home](https://google.com) |
12 | Add image | ![image](https://static.xx.fbcdn.net/rsrc.php/y8/r/dF5SId3UHWd.svg) |