A Concise Guide To Markdown
Introduction
What is Markdown anyway?
Markdown is nothing but a lightweight markup language to format text using a plain text editor. Today it is widely used in blogging, instant messaging, documentation, etc. Even Hashnode and Github use it and the content you are seeing on your screen right is also formatted using Markdown, so you can imagine how powerful it is.
This blog would mainly serve as a cheatsheet for quick reference to various popular markdown syntaxes as learning markdown is not at all hard. You just need to keep some basic and easy syntaxes in your mind and you are done with your preparations and it is time to write some markdown.
Heading:
Syntax- #H1, ##H2, ###H3
Bold text:
Syntax- **<Bold text>**
This is a bold text
Italic text:
Syntax- *<Italic text>*
This is an italic text
Blockqoute:
Syntax- >blockqoute
This is a blockqoute
Ordered List:
Syntax -
1. First Item
1. Second Item
1. Third Item
1. Fouth Item
results into:
- First Item
- Second Item
- Third Item
- Fouth Item
Unordered List:
Syntax -
- First Item
- Second Item
- Third Item
- Fourth Item
results into:
- First Item
- Second Item
- Third Item
- Fourth Item
Single line code:
Syntax - code inside single backtick
print(hello markdown)
Multi line code:
Syntax - code inside triple backticks
for(let i=0; i<arr.length; i++){
arr[i] = arr[i]+1;
}
Links:
Syntax - [title](https://www.example.com)
My Blog
Images:
Syntax - ![alt text](image.jpg)
Strike-through:
Syntax - ~~number/text~~
There are many more markdown syntaxes for formatting the content better but above mentioned are more than sufficient to get started and write down beautiful docs.
For knowing more about Markdown go through the following link:
Markdown
`