Markdown Cheatsheet

Markdown Cheatsheet

·

2 min read

Markdowns are special files used for describing the projects has file extension .md

1. Basic Syntax

Heading

#  Heading 1
##  Heading 2
###  Heading 3
#### Heading  4
##### Heading  5
###### Heading 6

Bold, Italic and Bold Italics

**Bold Text** or  __Bold Text__
*Italic Text*  or _Italic Text_
***Bold + Italic*** or ___Bold + Italic___

OUTPUT : Bold + Italic

Paragraph

welcome to the hello world program

Strike

~~Strike through text~~

Line Break

*** or ---

Lists

1.  C
2.  C++
3.  Java
4.  Web
      1.  HTML
      2.  CSS

-  C
-  C++
-  Java
-  Web
      -  HTML
      -  CSS

Code

`var` is a reserved keyword.

Code Block

```css
body{
  color: grey;
}
```

OUTPUT :

body{
  color: grey;
}

Links

[Link Text](actual_link "tooltip on hover display")

OUTPUT : google

Images

![alternate_text](image_url)

OUTPUT : google_logo

Blockquote

>  This is a blockquote

OUTPUT :

Blockquote 1

2. Additional Syntax

Note : Not all markdowns support these, Some may look similar to HTML tags. Table

| Syntax | Description |
| --- | ----------- |
| Header | Title |
| Paragraph | Text |

OUTPUT :

SyntaxDescription
HeaderTitle
ParagraphText

Heading ID

[scroll to heading 1](#heading-1_name)

Highlight

I need to highlight these <mark>very important words</mark>.

OUTPUT : I need to highlight these very important words.

Keyboard

<kdb>keyboard text</kbd>

Super and Sub scripts

H<sub>2</sub>0
X<sup>2</sup>

OUTPUT : H20 X2

Pre

<pre>
body{
  color: grey;
}
</pre>

OUTPUT ;

body{
  color: grey;
}

Happy Learning :)