DEV Community

Cover image for Markdown Cheatsheet
Gaurav Vala
Gaurav Vala

Posted on • Updated on

Markdown Cheatsheet

Headings

#Heading1

##Heading2

###Heading3

####Heading4

#####Heading5

######Heading6


Link

[ link name ] (link url)

Demo Link

Here the link url will have to be in specific format of :https:// yoursite domain


Text

_ italic text _

demo text

Here you can also use star(*) instead of underscore(_)

** bold text **

demo text

Same as previously you can use underscore instead of start but use 2.


Blockquotes

> your text here

>> nested blockquote

Demo text showing the blockquote

Nested blockquote text here


Lists

You can make 2 types of lists using markdown: Ordered list and Unordered List

Ordered List

1. Your text here

Demo 👇🏻

  1. Text 1
  2. Text 2

While making ordered list you just start from (1.), here the dot is key element for specifying the list. You just add numbers with dots to form an ordered list

Unordered List

* Your text here

Demo 👇🏻

  • Text 1
  • Text 2

While making unordered list you use the (*) symbol. the use of start symbol is not necessary here, you can also use (-) _ both works... _


Image

![image alt text](image url)

Demo Image👇🏻

demo image alt


Code blocks

your inline code

Here you use the (`) symbol where your code is written in between two symbols

``Your


whole code block

``


HERE WILL BE YOUR CODE WITH SYNTAX HIGHLIGHTING

While making a code block make sure to write the (`) two time on seperate line where the code will come in the area between them.


Conclusion

These are some basic symbols that i use while formatting my blogs on Hashnode or Dev to

One thing to keep in mind that some sites don't recognise the markdown if you don't give space between the symbol and the text so check the preview while formatting to adjust the space and format according to the site

If you want to to learn more complex components of markdown you can checkout the github guide for reference.


If you found the content i share useful than share it with your developer friends and also follow me on Instagram and Twitter

Top comments (0)