Simple Markdown cheatsheet

Simple Markdown cheatsheet

Overview

Markdown is a lightweight language that we can use to write well-formatted documents. we can add links, images, headings (h1-h6), Blockquote, code, horizontal line, make text bold, italic, strikethrough, and make ordered lists, unordered lists, etc.

to add links we can use [text to display](link)

Syntax: [coder community](https://www.web.codercommunity.io)

output: coder community

Images

we can add images using `![alt text](image url)

Syntax: ![alt text](http://surl.li/cmwdz)

Output: alt text

Headings

we can use headings from h1 to 6

 #            heading one
 ##          heading two
 ###        heading three
 ####      heading four
#####     heading five
######   heading six

Output

heading one

heading two

heading three

heading four

heading five
heading six

Blockquote

Syntax: >your block quote

Output

your block quote

Inserting Code

Syntax: ```const printHello = () => { console.log("Hello World") }```

Output:

const printHello = () => {
  console.log("Hello World")
}

Horizontal line

Syntax: ---

Output


Bold

Syntax: **Bold text**

Output: Bold text

Italic

Syntax: *Italic text*

Output: Italic text

Strikethrough

Syntax: ~~Thanos~~

Output
image.png

Ordered Lists

syntax

1. item 1
2. item 2
    1. sub item 1
    2. sub item 2

Output

  1. item 1
  2. item 2
    1. sub item 1
    2. sub item 2

Unordered Lists

syntax

- item 1
- item 2
    - sub item 1
    - sub item 2
- item 3
- ttem 4
    - sub item 1
    - sub item 2

output

  • item 1
  • item 2
    • sub item 1
    • sub item 2
  • item 3
  • ttem 4
    • sub item 1
    • sub item 2

Thank you for reading :)