Skip to content

Latest commit

 

History

History
275 lines (196 loc) · 5.94 KB

Mark-Down_cheatsheet.md

File metadata and controls

275 lines (196 loc) · 5.94 KB

Hello

This is a cheat sheet for basic Mark Down

If you liked this content then star this repository.

Creating Headings:

Syntax: #      Heading 1 
Syntax: ##     Heading 2 
Syntax: ###    Heading 3 
Syntax: ####   Heading 4
Syntax: #####  Heading 5
Syntax: ###### Heading 6


Output :

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

For horizontal line:

Syntax: **** or ______ or -----

Output :


Emphasis : - bold, italic and Strikethrough

Syntax: **This is a bold text**

Syntax: *This is a italic text*

Syntax: ~~This is a striked text~~

Syntax:  ***This is bold and italic text***

Output :

This is a bold text

This is a italic text

This is a striked text

This is bold and italic text

Table :


| Header 1 | Header 2 |
| ---------| ---------|
| Text1    | Text 4   |
| Text2    | Text 3   |

Output:

Header 1 Header 2
Text1 Text 4
Text2 Text 3

Text Alignment in Table

| This text is alinged to left | This text is alinged to center | This text is alinged to right |
| :--- | :----: | ---:|
| Text1 | Text 4 | Text 5 |
| Text2 | Text 3 | Text 6 |

Output:

This text is alinged to left This text is alinged to center This text is alinged to right
Text1 Text 4 Text 5
Text2 Text 3 Text 6

Unordered and Ordered list:

For unordered list:

Syntax: - Luv
        - Ajay

Output :

  • Luv
  • Ajay

For Ordered list :

Syntax:  1.  Option 1
         2.  Option 2

Output :

  1. Option 1
  2. Option 2

Nested Lists

Syntax 1: - Food
            1. Rice
            2. Chapati

Syntax 2: - Food
            - Rice
            - Chapati
Syntax 3: 1. Food
            1. Rice
            2. Chapati
Syntax 4: - Food
            1. Rice
            2. Chapati

Output 1:

  • Food
    1. Rice
    2. Chapati

Output 2:

  • Food
    • Rice
    • Chapati

Output 3:

  1. Food
    1. Rice
    2. Chapati

Output 4:

  • Food
    1. Rice
    2. Chapati

Blockqoutes:

> This is a single block quote.
>> This is anested block quote.

Output :

this is a single block quote.

nested block quote.

Code Blocks :

 Synatax: ```System.out.print("Hello");```

Output :

System.out.print("Hello");

Links:

synatx: [Text](link)
[Linkedin](https://www.linkedin.com/in/luv-sahu-182356200/)

Adding title(Hover title) to link
[Linkedin](https://www.linkedin.com/in/luv-sahu-182356200/ "Linkedin account")

Output:

Normal link: Linkedin

Adding title: Linkedin


Emails and Urls:

< Urls >
Example: <https://instagram.com/luv_k_sahu>
< emails >
Example: <[email protected]>

Output:


Example of link: https://instagram.com/luv_k_sahu

Example of email: [email protected]


Adding Image :

syntax: ![](Image URL)

Example: ![](https://picsum.photos/200/300)

Output :

Example:

Syntax Highlighting

Syntax :
```json
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```

Output :

{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}

HTML

Many Markdown applications allow you to use HTML tags in Markdown-formatted text. This is helpful if you prefer certain HTML tags to Markdown syntax. For example, some people find it easier to use HTML tags for images. Using HTML is also helpful when you need to change the attributes of an element, like specifying the color of text or changing the width of an image.

To use HTML, place the tags in the text of your Markdown-formatted file.

This **word** is bold. This <em>word</em> is italic. The rendered output looks like this:

This word is bold. This word is italic.

HTML Best Practices

For security reasons, not all Markdown applications support HTML in Markdown documents. You can freely use those tags in Github though.

Use blank lines to separate block-level HTML elements like <div>, <table>, <pre>, and <p> from the surrounding content. Try not to indent the tags with tabs or spaces — that can interfere with the formatting.

You can’t use Markdown syntax inside block-level HTML tags. For example, <p>italic and **bold**</p> won’t work.

If you think this list can contain some more items then add the items to this file and make a PR I will be happy to merge it.

Let us connect :

https://www.linkedin.com/in/luv-sahu-182356200/ luv_k_sahu luv_k_sahu luvksahu