cover-img

A complete guide for Markdown files

The only Markdown guide you need

9 October, 2022

4

4

0

According to Wikipedia:

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.

A markdown file has .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.
HTML tags are also supported in markdown.

Use Case

Markdown syntax is used in various popular places nowadays. You can also make websites using markdown files. This can be done using docsify.
Some popular platforms that use Markdown syntaxes and files are as follows -

ā€¢

GitHub

ā€¢

Hashnode

ā€¢

ā€¢

Discord and many other platforms.

Basic Syntaxes

Headings

Syntax:
Output:

H1 - Heading 1

H2 - Heading 2

H3 - Heading 3

H4 - Heading 4

H5 - Heading 5

H6 - Heading 6

Code

This can be written in 2 ways - Inline code and normal code
Syntax for inline code:
Output: Hello World
Syntax for normal code:
Output:

Unordered List of Items

Syntax:
Output:

ā€¢

Milk

ā€¢

Tea

ā€¢

Beer
Syntax:

This is an alternate syntax to create unordered list items.

Output:

ā€¢

JavaScript

ā€¢

TypeScript

ā€¢

ReactJs

Ordered List of Items

Syntax:
Output:

1.

Eat

2.

Walk

3.

Sleep

CheckBox Task List

Syntax:
Output:
img

Markdown checkboxes

Code Block

Syntax:
Output:
In order to highlight the code, you can add language name at the start of the backticks as in the following examples.
Example 1:
Output:
Example 2:
Output:

Strikethrough Text

Syntax:
Output:
Work all day without taking rest.

Blockquote Text

Syntax:
Output:

ā€œ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

Syntax:
Output:
DO NOT UNDERESTIMATE THE POWER OF A PROGRAMMER.
img

Random bollywood meme from a random website

Italic

Syntax:
Output:
It is Written in Italics

Bold and Italic

Syntax:
Output:
You Can Combine Bold and Italics
Syntax:
Output:
Did you know I have a stress-relieving Website?

Image

Syntax:
Output:
img

Linking an Image

Syntax:
Output:
img

Emojis

Syntax:
Output:
šŸ„­ šŸ‹ šŸ‘Ø šŸš—

Table

Syntax:
Output:
FruitEmoji
MangošŸ„­
LemonšŸ‹
Syntax:
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

Horizontal Line

Syntax:
Output:

HTML

Syntax:
Output:
Yes, you can use allowed raw HTML in https://www.youtube.com/watch?v=ME3_uchWv8kmark-down file. This is a paragraph aligned in the center.

Embed YouTube Video

Syntax:
Output:
img

Embed GIF

Syntax:
Output:
img

Mathematical Expressions

1.

Inline expressions:

Syntax

 $<<mathematical expression>>$

Replace <<mathematical expression>> with your expression.

Example

 $\sqrt{3}+1$

Output

img

2.

Block Expressions:

Syntax

 $$<<mathematical expression>>$$

Example

 $$\sqrt{3}+1$$

Output

img

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

img
For more information on how to write mathematical expressions, visit this page.

Conclusion

This is a comprehensive list for you all as your guide. Hope all went well and you enjoyed the article.
More powers to you. šŸ’Ŗ

Hope this helps you. Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my YouTube Channel and connect on LinkedIn or Twitter. Also, feel free to support my work.šŸ˜Š

hacktoberfest

4

4

0

hacktoberfest

Susmita Dey
Undergrad College Student | Open Sourcer | Web Developer | Graphic Designer @WeMakeDevs | YouTuber | Contributor @GSSoC'22 | Project Admin @SSOC"22

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

Ā© Copyright 2024. Showcase Creators Inc. All rights reserved.