Markdown
What is Markdown?
- Markdown is a lightweight markup language for creating formatted text using a plain-text editor. and is kinda similar to HTML.
Why Should I learn this?
- After having a good understanding of Md you can build a good read me.md file for github,DEV community ..
Headings
Below are 6 heading variations
Heading 1 [#]
Heading 2 [##]
Heading 3 [###]
Heading 4 [####]
Heading 5 [#####]
Heading 6 [######]
Horizontal Rule
This is a horizontal rule
use "[---]"
It separates content
Text formatting
Paragraph line spacing is important.
use either * or _ at the begining or at the end.
italic text and more italic text
_italic text_ and _more italic text_
bold text and more bold text
**bold text** and **more bold text**
*bold and italic text
**\*bold and italic text**
mix and match
**mix _and_ match**
strikethrough text
~~nikhil~~
nikhil
List
Ordered List
- Item 1
- Item 2
- Item 3
- Item 3
- Item 3
- Item 3
Markdown automatically take care of the order of list
Unordered List
- Item
- Item
- Item
Code formatting
Inline: Use JavaScript map()
`map()`
we can highlight a specific part of code by using backticks
Fenced code block
const sum = (a, b) => a + b;
sum(2, 2);
we can mention the programming language in code block by simply mentioning the programming language after backtick..
for
JavaScript (js)
Python (py)
typescript (ts)
Blockquote
This is a blockquote
>
Nested blockquote
this is nested blockquote.
Some text
> this is nested blockquote.
>
> > Some text
Task List
- [x] Task 1
- [x] Task 2
- [] Task 3
- [] Task 4
Callouts
💡 Tip Here's an important tip to remember!
> :bulb: **Tip** Here's an important tip to remember!
Links
for more Markdown
Top comments (0)