Markdown Cheat Sheet

Markdown Cheat Sheet

What is Markdown ?

Markdown is the markup language for user content at GitHub and allows users at all skill levels to write plain text documents

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.

Basic Markdown Syntax :

  • Headings
  • Bold
  • Italic
  • Blockquote
  • Ordered List
  • Unordered List
  • Code
  • Horizontal Rules
  • Links
  • Images

1.Heading :

  • To create a heading, add number signs ( # ) in front of a word or phrase. The number of number signs you use should correspond to the heading level. For example, to create a heading you can use the below syntax
# Heading 1
## Heading 2
### Heading 3
..
..
..
..
###### Heading 6

Output

image.png


2.Bold :

  • To bold text, add two asterisks or underscores before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.
    **bold text**
    __bold text__
    

    Output

    image.png

3.Italic :

  • To italicize text, add one asterisk or underscore before and after a word or phrase. To italicize the middle of a word for emphasis, add one asterisk without spaces around the letters
    *italicized text*
    _italicized text_
    

    Output

    image.png

4.Blockquote :

  • To create a blockquote, start a line with greater than > followed by an optional space. Blockquotes can be nested, and can also contain other formatting. To keep the quote together, blank lines inside the quote must contain the > character.
    > blockquote
    

    Output

    image.png

5.Ordered List :

  • To create an 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 the number one.
1. First item
2. Second item
3. Third item

Output

image.png


6.Unordered List :

  • 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

Output

image.png


7.Code :

  • There are two ways to format code in Markdown. You can either use inline code, by putting backticks (`) around parts of a line, or you can use a code block, which some renderers will apply syntax highlighting to
`code`

Output

image.png


8.Horizontal Rule :

  • You can create a horizontal rule by placing 3 or more hyphens, asterisks, or underscores on a single line by themselves. You can also place spaces between them.
---
***

Output

image.png


9.Links :

  • Markdown syntax for a hyperlink is square brackets followed by parentheses. The square brackets hold the text, the parentheses hold the link.
[LCO](https://web.learncodeonline.in/)

Output

image.png


10.Image :

  • Images can be added to any markdown page using the following markdown syntax
![LCO](https://asset-cdn.learnyst.com/assets/schools/2410/resources/images/logo_lco_4dsl6o.png)

Output

image.png