Table of contents
What is Markdown?
Markdown is a markup language that is used to format the text on a web page, you can use markdown to write
Github Readme.md
,technical documentation
and many more.Go to this Link to learn more about what is markdown
Basic Syntax
๐ Heading
# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6
output
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
๐ Bold
**bold text**
output
bold text
๐ Italic
*italicized text*
output
italicized text
๐ Blockquote
This is a blockquote
output
This is a blockquote
๐ List
๐ Ordered List
> 1. First item 2. Second item 3. Third item
output
- First item
- Second item
- Third item
๐ Unordered List
> - First item - Second item - Third item
output
- First item
- Second item
- Third item
๐ code
`code`
output
code
๐ Horizontal Rule
---
output
๐ Link
[ Link ]( https://themohitgupta.hashnode.com/undestanding-markdown)
output
๐ Image
![image](./image.jpg)
or
![LCO](https://learncodeonline.in/mascot.png)
output
Extended Syntax
๐ Table
| Syntax | Description | | ----------- | ----------- | | Header | Title | | Paragraph | Text |
output
Syntax Description Header Title Paragraph Text ๐ Fenced Code Block
{ "firstName": "Mohit", "lastName": "Gupta", "age": 25 }
output >
{ "firstName": "Mohit", "lastName": "Gupta", "age": 25 }
๐ Footnote
Here's a sentence with a footnote. [^1] [^1]: This is the footnote.
output
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
๐ Heading ID
### My Great Heading {#custom-id}
or
<h3 id="custom-id">My Great Heading</h3>
output
My Great Heading
๐ Definition List
First Term : This is the definition of the first term. Second Term : This is one definition of the second term. : This is another definition of the second term.
or
<dl> <dt>First Term</dt> <dd>This is the definition of the first term.</dd> <dt>Second Term</dt> <dd>This is one definition of the second term. </dd> <dd>This is another definition of the second term.</dd> </dl>
output
- First Term
- This is the definition of the first term.
- Second Term
- This is one definition of the second term.
- This is another definition of the second term.
๐ Strikethrough
~~The world is flat.~~ or
or
<s>The world is flat.</s>
output
The world is flat.๐ Task List
- [x] Write the press release - [ ] Update the website - [ ] Contact the media
output
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
๐ Emoji
That is so funny! :joy:
output
That is so funny! :joy:
๐ Highlight
I need to highlight these ==very important words==.
or
I need to highlight these <mark>very important words</mark>.
output
I need to highlight these very important words.
๐ Subscript
H~2~O
or
H<sub>2</sub>O
output
H2O
๐ Superscript
X^2^
or
X<sup>2</sup>
output
X2
ย