Markdown Cheatsheat

All You Need To Know To Get Started With Markdown

Markdown Cheatsheat

What is Markdown ?


Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber and Aaron Swartz created Markdown in 2004 as a markup language that is appealing to human readers in its source code form.

Let's Start

  • Heading In Markdown

    You can create 6 level or types of heading in markdown

    # H1
    ## H2
    ### H3
    #### H4
    ##### H5
    ###### H6
    

    0utput

    h1

    h2

    h3

    h4

    h5
    h6

    basically number of # is equal to level of heading and don't forget about space after # sily mistakes.


  • Text Formating In Markdown

    You can make text bold, italic and ~~Strikethrough~~ in markdown

    Look like hasnode doesn't support Strikethrough

    Italics, aka emphasis, with *asterisks* or _underscores_.
    
    Bold, aka strong emphasis, with **asterisks** or __underscores__.
    
    Both bold and italics with **asterisks and _underscores_**.
    
    Strikethrough uses two tildes. ~~Scratch this.~~
    

    Output

    Italics, aka emphasis, with asterisks or underscores.

    Bold, aka strong emphasis, with asterisks or underscores.

    Both bold and italics with asterisks and underscores.

    Strikethrough uses two tildes. Scratch this.


  • List In Markdown

    You can use both ordered and unordered list in markdown.

    Ordered List
    1. Item 1
    2. Item 2
    3. Item 3
      1. Sub-Ordered List 1
      2. Sub-Ordered List 2  
    
    Un-Ordered List
    - Data 1
    - Data 2
    - Data 3
      - Sub-Un-Ordered List
      - Sub-Un-Ordered List
    
    Combining Both Lists
    - Unordered 1
    - Unordered 2
      1. Ordered 1
      2. Ordered 2
    

    Output

    Ordered List

    1. Item 1
    2. Item 2
    3. Item 3
      1. Sub-Ordered List 1
      2. Sub-Ordered List 2

    Un-Ordered List

    • Data 1
    • Data 2
    • Data 3
      • Sub-Un-Ordered List
      • Sub-Un-Ordered List

    Combining Both Lists

    • Unordered 1
    • Unordered 2
      1. Ordered 1
      2. Ordered 2

  • Links In Markdown

    You can create links in markdown using [] ().

    [text you want to highlight](url)
    
    Linking Google
    
    [Google](https://google.com)
    

    Output

    text you want to highlight

    Linking Google

    Google


  • Images In Markdown

    You can use images in markdown as well you can link images too.

    ![alternate text](image destination/url)
    
    Using Image like link
    
    [![alternate text](image destination)](url)
    

    alternate text

    Using Image like link

    alternate text


  • Code And Syntax Highlighting In Markdown

    You can use markdown for code and syntax highlighting it supports about all major languages for syntax highlighting

    ```<languageName>
    Code
    ```
    
    ```python
    print("Hello World")
    ```
    

    Output

    print("Hello World")
    

Thank's for reading till end And I have also used markdown for first time to write this article so it is not that difficult.