Markdown Cheat Sheet

A quick reference to Markdown syntax

Overview

This Markdown cheat sheet provides a quick overview of Markdown syntax elements. All Markdown applications support these elements.

Basic Syntax

Heading

To create Heading, add number signs (#) in front of a word. The number of (#) signs you should use should correspond to heading level. For Example, Three number signs (###) are used to create heading of level three (<h3>)

  • # H1
  • ## H2
  • ### H3

Bold

To bold text, we have to use two asterisks signs or underscores before and after a word. To bold middle of a word, add two asterisks without space.

  • **Bold Text**     ----------->    Bold Text
  • __Also Bold Text__    ----->    Also Bold Text

Italic

To italicize text, we have to use one asterisk sign or underscore before and after a word. To italicize middle of word, add one asterisk without space.

  • *Italicized Text*    ----------->    Italicized Text
  • _Also Italicized Text_    ----->    Also Italicized Text

Bold and Italic

To emphasize text with bold and italics at the same time, we have to use three asterisk signs before and after the word.

  • ***Bold and Italic Both***    ----------->    Bold and Italic Both
  • ___Also Bold and Italic Both___    ----->    Also Bold and Italic Both

Blockquotes

To create a blockquote, enter a > in front of a paragraph.

  • > This is a blockquote.

Output :

This is a blockquote.

Lists

Ordered Lists

To create ordered list, add line items with numbers followed by periods. The numbers don't have to be in numerical order, but the list should start with number one.

1. One
1. Two
1. Three

gives the output :

  1. One
  2. Two
  3. Three

Unordered Lists

To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items. Indent one or more items to create a nested list.

- First Item
- Second Item
- Third Item
- First Item
-Second Item
  - Indented Item
-Third Item

gives output :

  • First Item
  • Second Item
  • Third Item

And

  • First Item
  • Second Item
    • Indented Item
  • Third Item

Code

To denote a word or phrase as code, enclose it in backticks (`).

For Example : This is let keyword.

Code Blocks

To denote a word or phrase as code, enclose it in backticks (```).

For Example :

<html>
  <head>
  </head>
</html>

To create a link, enclose the link text in brackets (e.g., [Google]) and then follow it immediately with the URL in parentheses (e.g., (google.com)).

[Google](https://google.com)

gives the link like :

Google

Images

To add an image, add an exclamation mark (!), followed by alt text in brackets, and the path or URL to the image asset in parentheses. You can optionally add a title in quotation marks after the path or URL.

![Instagram Logo](https://png.pngtree.com/element_our/sm/20180524/sm_5b072d393d61e.jpg)

gives :

Image

That's it for Markdown, don't forget to share your feedback; I would love to hear your thoughts 😊