Markdown

Markdown

An Informative Guide To Markdown Of GitHub

What is markdown?

Markdown is an easy-to-use markup language that is used with plain text to add formatting elements (headings, bulleted lists, URLs) to plain text without the use of a formal text editor or the use of HTML tags.

You will learn the major commands which are useful to create Readme file of GitHub.

Headings

We create headings using # followed by space. We can achieve different sizes by adding # upto 6.

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

Output:

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

We need not use any command and we can directly write the paragraph.

This is  a paragraph.

Output:

This is a paragraph.

Lists

There are two types ordered list and unordered list.

We create ordered list by writing number. followed by space and text. and if we give space in the beginning under a list then the later becomes nested list.

1. One
2. Two
3. Three
   1. One
   2. Two

Output:

  1. One

  2. Two

  3. Two

    1. One

    2. Two

Unordered List:

It is created by * or (-) followed by space

- One   
- Two
  - One
- Hello
  - I am going

* Hemlo

* one
  • One

  • Two

    • One
  • Hello

    • I am going
  • Hemlo

  • one

Font Style

We can do the font style by using the below commands.

Emphasis, aka italics, with *asterisks* or _underscores_.

Strong emphasis, aka bold, with **asterisks** or __underscores__.

Combined emphasis with **combined _underscores_**

Strikethrough uses two tildes. ~~Its a strike through.~~

Output:

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or underscores.

Combined emphasis with combined underscores

Strikethrough uses two tildes. Its a strike through.

We create links using the below command

[clickable](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks "Lco")

clickable

Images

![LCO](https://learncodeonline.in/mascot.png)
<!-- Here LCO is the alternate text -->

Output:

Code

To write a piece of code we use the backticks as shown below.


```javascript
console.log("Hello Guys!");
```

console.log("Hello Guys!");

In the above code we write the name of the language to specify the language that we are using.

For representing a single keyword in the markdown we use the below

Hello `let` is a keyword

Hello let is a keyword

Quote

If you'd like to quote someone, use the > character before the line:

> This is a blockquote.

This is a blockquote.

Horizontal line

If we need a horizontal line we use *** or ---

This is a paragaraph
***
1. Hello

This is a paragaraph


  1. Hello

Tables

A table in markdown consists of two parts.

  • The header

  • The rows of data in the table You can create tables with pipes|and hyphens-. Hyphens are used to create each column's header, while pipes separate each column.

    
      Rows in the table are separated by line breaks
      | Column 1 Header | Column 2 Header | 
      | --------------- | --------------- |
      | Row 1 Column 1 | Row 1 Column 2 | 
      | Row 2 Column 1 | Row 2 Column 2 | 
      | Row 3 Column 1 | Row 3 Column 2 |
    

Column 1 Header

Column 2 Header

Row 1 Column 1

Row 1 Column 2

Row 2 Column 1

Row 2 Column 2

Row 3 Column 1

Row 3 Column 2

References:

https://youtu.be/bpdvNwvEeSE

Thankyou😊!

Did you find this article valuable?

Support Achana Naga Durga Prasad's blog by becoming a sponsor. Any amount is appreciated!