Skip to content

shams-imran/markdown-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Header Example

H1 - This is H1

H2 - This is H2

H3 - This is H3

H4 - This is H4

H5 - This is H5
H6 - This is H6

Italic and Bold text

italic text here with single *

italic text here with underscore

bold text here with two **
bold with double underscores

Strikethrough uses two tildes. Scratch this.

Emphasis, aka italics, with asterisks or underscores.

Strong emphasis, aka bold, with asterisks or .


Paragraph and Line Breaks

Here's a line for us to start with.

This line is separated from the one above by two newlines, so it will be a separate paragraph.

This line is also a separate paragraph, but... This line is only separated by a single newline, so it's a separate line in the same paragraph.

Use more than 2 space for new line.
This is new line.

Link Example

Some linked here.

An example_with_id.


Images

alt text

Images with Ref id

alt text

Images with custom Size

IMAGE ALT TEXT HERE

Reference Link

I'm a relative reference to a repository file


Superscript

E=MC2

Subscript

CO2


Lists

Ordered

  1. Item 1
  2. Item 2
  3. Item 3

Unordered

  • A list item.
    Type 4(Four Space for new line).
    Sample text for new line
  • Bar. If not type 4(Four Space) they are in same line.

Nested:

  • Abacus
    • absolute
      • sub-item 1
    • sub-item 2
  • Bananas
    1. bitter
    2. sitter
    3. pit
  • Cunning
    1. abc
      • def
    2. fgh
      • ijk
      • lmn

Blockquotes

Email-style angle brackets are used for blockquotes.

You can also nest them.

Second level nested

Third level nested

  • You can quote a list.
  • Etc.

To break the nested blockquote, add a space between lines.

Add another line to resume regular paragraph text.


<code> spans are delimited by backticks. You can include literal backticks like `this`. Inline code has back-ticks around it.

This is a normal paragraph:

This is a preformatted code block.
    his is second line
This is third line.

Preceded by a space, the colon disappears :

This is a preformatted code block.

Code with language detection :

Js Code
var s = "JavaScript syntax highlighting";
alert(s);
python Code
s = "Python syntax highlighting"
print(s)
json file
{
"success": {
"message": "Welcome to JSON Viewer",
"status_code": 200
    }
}
No language indication
No language indicated, so no syntax highlighting. 
But let's throw in a <b>tag</b>.

Horizontal rules

Using Hyphens


Using Asterisks


Using Underscores


Manual line breaks

End a line with two or more spaces:

Roses are red,
Violets are blue.

Text colors and fonts

This is red color text.
I am 2 em! font.
I am 1.5 em red color font.

Tables

Colons can be used to align columns.

There must be at least 3 dashes separating each header cell. The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
Markdown Less Pretty
Still renders nicely
1 2 3

Checkbox Link

  • Write the press release
  • Update the website
  • Contact the media

Automatic URL Linking

http://www.example.com

Disabling Automatic URL Linking

http://www.example.com

About

Markdown cheat sheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors