What is MarkDown?
Markdown is a plain text formatting syntax that is focused on making writing on the internet easier. It can also be considered as an alternative to WYSIWYG editors. WYSIWYG is What You See Is What You Get... MarkDown files have an extension of .md. If you have worked with Github you must be familiar with it.
It is much easier to learn and fast to use without too many tags mussing everything up.
Basic Syntax
Heading
Just like in HTML heading here ranges from 1-6 with size decreasing.
#
followed by space
and then Heading
.
# Heading 1
Heading 1
## Heading 2
Heading 2
### Heading 3
Heading 3
Bold
For Bold we use **
or __
on both sides of the text
**Bold**
__Bold__
Bold Bold
Italic
For Italics, we use *
or _
Italic Italic
Blockquote
For blockquote, we use >
followed by space
BlockQuote
Ordered List
For Ordered List
1. First item
2. Second item
3. Extra
- First item
- Second item
- Extra
the point here to note is that any number
followed by .
and space
will get ordered serially. Even if we write 9. nth item
the list will begin from 1
Unordered List
Unordered List we can use -
followed by space
- First item
- Second item
- Third item
- First item
- Second item
- Third item
Code
Code can be written between the backticks
`code`
if we want a block of code we can have 3 such backticks /backquotes, and to highlight the code inside we can mention the language/format it's in right after the first 3 backquotes.
Horizontal Line
A horizontal line can be drawn using ---
but must have an empty line above it
Link
Link can be added using
[Youtube](www.Youtube.com)
Image
Image Addition can also be done in the same manner but we have to add !
before the entire line.
![SomeName](LinkToImage)
Extended Syntax
Table
To add a table, use three or more ---
to create each column's header, and use |
to separate each column.
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
Syntax | Description |
Header | Title |
Paragraph | Text |
StrikeThrough
You can strikethrough words by putting a horizontal line using ~~
before and after the words you want to strike.
TaskLists
Task lists allow you to create a list of items with checkboxes.
- [x] Step one
- [x] Step two
- [ ] Step Three
- [x] Step one
- [x] Step two
- [ ] Step Three
Emoji
Some Markdown supports emoji as well
Gone camping! :tent: Be back soon.
That is so funny! :joy:
Highlighting
Highlighting can be done using ==
on both sides of important words.
I need to highlight these ==very important words==.
Subscript and SuperScript
For Subscript we use ~
and For Superscript we use ^
H~2~O
X^3^
This is pretty much all the features of Markdown at the time of publishing this article. The features which don't have examples using the md code are not supported by the platform as of now. Thanks for Reading, Keep Learning!