markdown-cheatsheet
is a single place for all the markdown syntaxes I have learned so far. Sharing publicly so that you also know about them and use.
- Headings
- Code
- Unordered List of Items
- Ordered List of Items
- CheckBox Task List
- Code Block
- Strikethrough Text
- Blockquote Text
- Bold
- Italic
- Bold and Italic
- Link
- Image
- Linking an Image
- Emojis
- Table
- Table With Alignments
- Horizontal Line
- HTML
- Embed YouTube Video
- Mathematical Expressions
Many Thanks to all the Stargazers
who has supported this project with stars(β)
Syntax:
# H1 - Heading 1
## H2 - Heading 2
### H3 - Heading 3
#### H4 - Heading 4
##### H5 - Heading 5
###### H6 - Heading 6
Output:
Syntax:
`This is Code`
Output:
This is Code
Syntax:
- Milk
- Tea
- Beer
Output:
- Milk
- Tea
- Beer
Syntax:
This is an alternate syntax to create unordered list items.
* JavaScript
* TypeScript
* ReactJs
Output:
- JavaScript
- TypeScript
- ReactJs
Syntax:
1. Eat
1. Walk
1. Sleep
Output:
- Eat
- Walk
- Sleep
Syntax:
- [X] Code
- [ ] Review
- [ ] Commit
Output:
- Code
- Review
- Commit
Syntax:
```
This is a code block. You can create for code syntaxes like JavaScript, HTML, CSS, Bash, and many more.
```
Output:
This is a code block. You can create for code syntaxes like JavaScript, HTML, CSS, Bash, and many more.
In order to highlight the code, you can add language name at the start of the backticks as in the following examples.
Example 1:
```js
function print() {
console.log('This is is a JavaScript Code Block');
}
```
Output:
function print() {
console.log('This is is a JavaScript Code Block');
}
Example 2:
```bash
# This is bash
echo 1
```
Output:
# This is bash
echo 1
Syntax:
~~Sharing is NOT about Caring.~~
Output:
Sharing is NOT about Caring.
Syntax:
> When I say something, I mean it. When I mean it, I do it. When I do, I may fail. When I fail, I start talking about it again!
Output:
When I say something, I mean it. When I mean it, I do it. When I do, I may fail. When I fail, I start talking about it again!
Syntax:
**DO NOT UNDERESTIMATE THE POWER OF A PROGRAMMER.**
Output:
DO NOT UNDERESTIMATE THE POWER OF A PROGRAMMER.
Syntax:
*It is Written in Italics*
Output:
It is Written in Italics
Syntax:
***You Can Combine Bold and Italics***
Output:
You Can Combine Bold and Italics
Syntax:
Did you know I have [Website](https://tapasadhikary.com)?
Output:
Did you know I have Website?
Syntax:
![alt text](image)
Output:
Syntax:
[![alt text](image)](hyperlink)
Output:
Syntax:
:mango: :lemon: :man: :car:
Output:
π₯ π π¨ π
Syntax:
| Fruit | Emoji |
| ----------- | ----------- |
| Mango | :mango: |
| Lemon | :lemon: |
Output:
Fruit | Emoji |
---|---|
Mango | π₯ |
Lemon | π |
Syntax:
| Fruit(left) | Emoji(center) | Taste(right) |
| :--- | :----: | ---: |
| Mango is the king of Fruits | :mango: | Sweet and I love it |
| Lemon is good for health | :lemon: | Sour, mix it in the water |
Output:
Fruit(left) | Emoji(center) | Taste(right) |
---|---|---|
Mango is the king of Fruits | π₯ | Sweet and I love it |
Lemon is good for health | π | Sour, mix it in the water |
Syntax:
---
Output:
Syntax:
<p align="center">
Yes, you can use allowed raw HTML in mark-down file.
This is a paragraph aligned in the center.
</p>
Output:
Yes, you can use allowed raw HTML in mark-down file. This is a paragraph aligned in the center.
Heading
The details are here.Syntax:
[![Alt Text](Thumbnail Image)](YOUTUBE VIDEO LINK)
Output:
-
Inline expressions:
Syntax
$<<mathematical expression>>$
Replace
<<mathematical expression>>
with your expression.Example
$\sqrt{3}+1$
Output
$\sqrt{3}+1$ -
Block Expressions:
Syntax
$$<<mathematical expression>>$$
Example
$$\sqrt{3}+1$$
Output
$$\sqrt{3}+1$$ -
Mixed Expressions:
Syntax
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
Output
When
$a \ne 0$ , there are two solutions to$(ax^2 + bx + c = 0)$ and they are$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
For more information on how to write mathematical expressions, visit this page.