What is Markdown?
Markdown is a plain text formatting syntax for writers. It allows you to quickly write structured content for the web, and have it seamlessly converted to clean, structured HTML.
Headings-
Hash character (#) is used make headings.
Markdown Syntax-
# Heading 1
## Heading 2
### Heading 3
#### Haeding 4
##### Haeding 5
###### Heading 6
Output-
Bold
Two asterisk characters (**) are used to before and after the text, or we can also use underscores (your text).
Markdown Syntax-
**This text is bold**
__This text is bold__
Output-
Italic
Use single asterisk (*) or single underscore(_) before and after your text.
Markdown Syntax-
*This is Italic*
_This is Italic_
Output-
Lists
For ordered list use number and dot(.) before your list items and for unordered list use hyphen (-) before your list items.
Markdown Syntax-
1. ordered list item one
2. ordered list item two
3. ordered list item three
1.order sub list item one
2.ordered sub list item two
- unordered list item one
- unordered list item two
- unordered list item three
- unordered sub list item one
- unordered sub list item two
Output-
Blockquote
Use > symbol before your quote text.
Markdown Syntax-
> main blockquote text
>> nested blockquote text
Output-
Code
Use three backtick symbols (```) before and after your code.
Markdown Syntax-
```
{
"title":"iPhone 13 Pro",
"price":"100000",
"color":"Blue",
}
```
Output-
Strikethrough
Use two tilde symbol (~~) at start and end of your text.
Markdown Syntax-
~~strikthrough~~
Output-
Link
Markdown Syntax-
[Link](https://www.google.com)
Output-
Images
In VS code PNG format is most preferred image format, but we can't resize images in vs code.
Markdown Syntax-
![image](https://cdn.pixabay.com/photo/2021/08/04/13/06/software-developer-6521720_1280.jpg)
Output-
Task List
For creating a task list , use hyphen (-) followed by space and then use square brackets [] and x in square brackets.
Markdown Syntax-
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
Output-
Table
Markdown Syntax-
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |