Markdown Cheat-Sheet

·

2 min read

Markdown Cheat-Sheet

What is Markdown ?

Markdown is the markup language that you can use to add formatting elements to plaintext text documents. It have .md extension.

Headings

Every page contain atleast one or more heading. Markdown provide you different level of heading. We can give heading using '#' symbol. This hash(#) symbol will decide the level of heading.

Syntax: 
# heading1
## heading2
### heading3
#### heading4
##### heading5
###### heading6

image.png


Bold

We can bold any text using ** OR __

  Syntax:
  **Text**
  __Text__

 Both will give same output.

image.png


Italic

We can give Italic style to any text using * OR _

  Syntax:
  *Text*
  _Text_

Both will give same output.

image.png


Strike Through

We can strike on any text by using ~

Syntax: 
~~799~~

image.png


Paragaraph

By just writting Normal Text we can write paragraph.

example:  
 Hello From My Side, Hope You All Are Doing Great!

image.png


List

Two Types of List ordered list(ol) and unordered List(ul).

OrderList Synatx:

1. List1
2. List2

image.png

UnorderList Synatx:

-List1 
-List2

image.png


By using [](squareBracktes) and ()(Parentheses) we can upload any link.

Syntax: 
[AlternativeText](Link Of the Webpage)
Example: 
[LCO](https://learncodeonline.in)

image.png


Image

By using [](squareBracktes) and ()(Parentheses) we can upload any image.

Syntax: 
[AlternativeText](Link Of the Image)
Example: 
![LCO](https://learncodeonline.in/mascot.png)

image.png

ALTERNATIVE TEXT alias alt text is shown when failure to fetch an Image

image.png


Code Snippet

It starts with triple back ticks(```) and ends with the same

 Syntax:
```
    for(int i=0; i<4; i++)
    {
     }
```

image.png


Quoting text

By using > You can quote the text.

Syntax:
> This Is Quoting text.

image.png


Table

A table is made using pipes | and hyphens -.

Synatx:  
 | FirstName     | LastName    | Course|
 | ------------- | -------------| -------- |
 | Name1          | LastName1   | Course1 |
 | Name2         | LastName2  | Course2 |

image.png


Breaking Sections

By using *** OR ___, We can break one section with other section creating a Line between them.

Syntax: 
Section 1
***
Section 2
___
Section 3

image.png


Hope you have enjoyed🎉 learning the markdown formatting and syntax!💫 Will come with something new next time🚀, till then Keep Learning, Keep Exploring✨