What is Markdown ?
Markdown is a lightweight markup language used to create formatted text, typically for publishing on the internet.
It’s extension is .md
We are going to discuss about Basic Syntax :
Basic Syntax
- Heading
Syntax:
# Heading level 1
## Heading level 2
### Heading level 3
#### Heading level 4
##### Heading level 5
###### Heading level 6
Output:
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
- Bold
Syntax:
**bold text**
__bold text__
Output:
bold text
bold text
- Italic
Syntax:
*Italic text*
_Italic text_
Output:
Italic text
Italic text
- Blockquotes
Syntax:
> This is blockquote sentence.
Output:
This is blockquotes sentence.
Lists
-Ordered Lists
Syntax:
1. First item
2. Second item
3. Third item
4. Fourth item
Output:
- First item
- Second item
- Third item
- Fourth item
-Unordered Lists
Syntax:
- First item
- Second item
- Third item
- Fourth item
Output:
- First item
- Second item
- Third item
- Fourth item
-Images
Syntax:
![Alt text](URL or file path)
Example :-
![Sonny and Mariel high fiving.](https://community-challenge/highfive.gif)
Output:
-Links
Syntax:
To create a link, enclose the link text in brackets (e.g., [Google]) and then follow it immediately with the URL in parentheses (e.g., (https://google.com)).
Example:-
My favorite search engine is [Google](https://google.com).
Output:
My favorite search engine is Google.
-Code
Syntax:
```python
print("Hello")
```
Output:
print("Hello")
-Table
Syntax:
|Header 1 |Header 2 | Header 3|
|--- | --- | ---|
|data 1|data 2|data 3|
|data 4|data 5|data 6|
Output:
Header 1 | Header 2 | Header 3 |
data 1 | data 2 | data 3 |
data 4 | data 5 | data 6 |