Markdown is a lightweight and plain-text-formatting syntax markup language for styling documents such as README files and writing message in discussion forums.
Mostly, Markdown is just regular text with special characters throws such as #
or *
to control the format.
Table of contents
Basic Syntax
Following are the basic syntax used in Markdown.
Header
# This is an H1 tag
## This is an H2 tag
### This is an H3 tag
#### This is an H4 tag
##### This is an H5 tag
###### This is an H6 tag
Result
This is an H1 tag
This is an H2 tag
This is an H3 tag
This is an H4 tag
This is an H5 tag
This is an H6 tag
Emphasis
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
_You **can** combine them_
Result
This text will be italic
This will also be italic
This text will be bold
This will also be bold
You can combine them
List
Unordered
* Item 1
* Item 2
Result
- Item 1
- Item 2
Ordered
1. Item 1
2. Item 2
Result
- Item 1
- Item 2
Image
![Google Logo](url)
## Format: ![Alt text](URL)
Result
Link
[Google](http://google.com)
Result
Blockquote
> We're living the future so
> the present is our past.
Result
We're living the future so the present is our past.
Inline Code
`CTRL` + `C`
Result
CTRL
+ C
Code block
# backtick
'''javascript
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
'''
Result
function fancyAlert(arg) {
if (arg) {
$.facebox({ div: "#foo" });
}
}
Horizontal rule
---
Result