A complete guide for Markdown files
9 October, 2022
4
4
0
Contributors
Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber and Aaron Swartz created Markdown in 2004 as a markup language that is appealing to human readers in its source code form. Markdown is widely used in blogging, instant messaging, online forums, collaborative software, documentation pages, and readme files.
.md
extension and we can write and design text or useful information by following the basic syntaxes. It's very popular and easy to use.Use Case
ā¢
ā¢
ā¢
ā¢
Basic Syntaxes
Headings
H1 - Heading 1
H2 - Heading 2
H3 - Heading 3
H4 - Heading 4
H5 - Heading 5
H6 - Heading 6
Code
Hello World
Unordered List of Items
ā¢
ā¢
ā¢
This is an alternate syntax to create unordered list items.
ā¢
ā¢
ā¢
Ordered List of Items
1.
2.
3.
CheckBox Task List
Markdown checkboxes
Code Block
Strikethrough Text
Blockquote Text
āI'm unpredictable, I never know where I'm going until I get there, I'm so random, I'm always growing, learning, changing, I'm never the same person twice. But one thing you can be sure of about me; is I will always do exactly what I want to do.ā
Bold
Random bollywood meme from a random website
Italic
Bold and Italic
Image
Linking an Image
Emojis
Table
Fruit | Emoji |
---|---|
Mango | š„ |
Lemon | š |
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 |
Horizontal Line
HTML
Embed YouTube Video
Embed GIF
Mathematical Expressions
1.
Inline expressions:
Syntax
$<<mathematical expression>>$
Replace <<mathematical expression>>
with your expression.
Example
$\sqrt{3}+1$
Output
2.
Block Expressions:
Syntax
$$<<mathematical expression>>$$
Example
$$\sqrt{3}+1$$
Output
3.
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
Conclusion
Hope this helps you. Thank you for reading, and let's connect!
hacktoberfest