The Markdown Cheat sheet !!

ยท

4 min read

The Markdown Cheat sheet !!

When we make a Repo on Github there are three options to initialize a repository with a file. One of them is add a README file. So what is that?

READMEs

A README file is used to communicate important information about a repository including:

  • What the project does
  • How to run the project
  • Why it's noteworthy
  • Who maintains the project

so READMEs plays important role, it's the first thing somebody looks at when they come to your project. title says all README ๐Ÿ˜ƒ. this file is like any other file expect the its name very particular README.md so what is that md.

README.md

READMEs are Markdown files, ending with the .md extension. Markdown is a convenient syntax to generate formatted text. it generate Markups / Markdown it's easy to pick up !

Getting started with the elements of Markdown :

Headings:

Link for demo

# Thats Heading 1

## Thats Heading 2

### Thats Heading 3

#### Thats Heading 4

##### Thats Heading 5

###### Thats Heading 6

Preview:

Screenshot 2022-07-23 at 4.08.44 PM.png


Styling Texts:

Normal text like this ๐Ÿ˜„

**BOLD** OR  __BOLD__  ๐

*Italic* OR __Italic __ ๐ผ

***That's Bold as well as Italicized Text*** 
OR 
___That's Bold as well as Italicized Text___

~~Strikethrough~~

**That's Bold as well as _nested_ Italicized Text**

Preview:

Screenshot 2022-07-23 at 4.47.24 PM.png


For creating links we need two set of brackets, [Content] for writing the text for the link and (URL) for mentioning the URL within parenthesis.

[Welcome to Learn Code Online !](https://web.learncodeonline.in/)

Preview:

Welcome to Learn Code Online !


Images:

To insert an image to your Markdown file, add an exclamation mark (!) in the beginning followed by square brackets to add the image alt text inside that and finally add the URL or path to the image inside the parentheses.

Note : Make sure to not leave any space between the exclamation mark, square brackets and parentheses !

![Dragon Ball Super !](https://images5.alphacoders.com/781/781768.png)

Preview:

Dragon Ball Super !


Code Blocks:

To display any block of code, simply wrap the code block with Grave accent keys (`) thrice.

let firstName = "John";
console.log(firstName)

Preview:

Screenshot 2022-07-23 at 5.06.55 PM.png


Blockquotes:

## Blockquotes
> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.

Preview:

Screenshot 2022-07-23 at 5.12.10 PM.png


List:

Items can be organized into ordered and unordered lists.

1) Ordered Lists :

To create an ordered list, add line items with numbers followed by periods.

1. Ordered List 1
2. Ordered List 2
3. Ordered List 3
1. Ordered List 1
2. Ordered List 2
    1. Indented item 1
    2. Indented item 2
3. Ordered List 3

Preview:

Screenshot 2022-07-23 at 5.23.32 PM.png

2) Unordered Lists : For creating Unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items. Also Indentation of one or more items can create a nested list.

* Unordered List 1
* Unordered List 2
* Unordered List 3
- Unordered List 1
- Unordered List 2
    - Indented item 1
    - Indented item 2
- Unordered List 3

Preview:

Screenshot 2022-07-23 at 5.26.43 PM.png


Tables:

To create Tables, we can use three or more hyphens to create a header for each column (---), and separate those columns using pipes (|) and you can even use pipes on either ends of your table.

## Tables
| Country    | Capital|
| ---------- | -------|
| Germany    | Berlin |
| India     | Delhi  |
| Cuba       | Havana |

Screenshot 2022-07-23 at 5.37.36 PM.png


Horizontal Rule:

For creating a horizontal rule, we can use three or more asterisks , dashes or underscores on a line.


******

OR 

-----

OR

____________

Screenshot 2022-07-23 at 5.35.38 PM.png

Okay That's it I am Going Away Bye ๐Ÿ‘‹๐Ÿป ๐Ÿ˜†.

Lets connect on, Karan Meghe Twitter | GitHub

ย