# 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

  ```markdown
  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](url)
  
  Linking Google

  [Google](https://google.com)

---

- __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](https://learncodeonline.in/mascot.png)](https://web.learncodeonline.in)

---

- __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

  ```python
  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.
