LEARNING MARKDOWN
WHAT IS MARKDOWN
Markdown is a quick and easy formatting language similar to HTML and one of the most popular markup languages. It is more comfortable to write than HTML, and it’s easier for most humans to read Markdown source than HTML source. However, Markdown is not a WYSIWYG editor.
1) STYLING
Below table mentions the Style and the Syntax
| Styling | Syntax | Keyboard Shortcut | Sample code |
|---|---|---|---|
| Bold | ** ** or __ __ | command/control + b | Markdown |
| Italic | * * or _ _ | command/control + i | Markdown |
| Strikethrough | ~~ ~~ | ||
| Bold & Nested italic | ** ** and _ _ | Mark _down | |
| Bold & italic | ** ** | Markdown |
2) UNORDERED LIST
To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items.
INPUT:
”- Task 1”
”* Task 3”
”+ Task 2”
OUTPUT:
- Task 1
- Task 3
- Task 2
3) ORDERED LIST
To create an ordered list, add line items with numbers followed by periods. The numbers don’t have to be in numerical order, but the list should start with the number one.
INPUT:
‘1. Google’
‘3. Yahoo’
‘2. Bing’
OUTPUT:
- Yahoo
- Bing
4) NESTED LIST
We can nest an unordered list in an ordered list, or vice versa. Indent one or more items to create a nested list.
INPUT :
“1. Mango”
“2. Banana”
“3. Apple”
”- Gala”
”- Red Delicious”
OUTPUT:
- Mango
- Banana
- Apple
- Gala
- Red Delicious
5) Horizontal Rules
To create a horizontal rule, use three or more asterisks (***), dashes (—), or underscores (___) on a line by themselves.
INPUT:
“***”
”—”
“_________”
The rendered output of all three looks identical:
OUTPUT: