Introduction to Markdown

I’ve recently watched a short video about github and the use of Markdown. Since WordPress supports the use of markdown i decided to get used to it for this blog but also for GitHub, example: ReadMe.md, where md stands for markdown.

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

 

 

HEADERS and BLOCKQUOTES

 

A blockquote begins and ends with “>” :

I’ve used this quite a bit

 

Headers 1-6, start with “#” for h1 ; “##” for h2 and so forth …

 

This is a h1 header

This is a h2 header

This is a h3 header

This is a h4 header

This is a h5 header
This is a h6 header

 

 

Phrase emphasis

Using “__” around the word will make it cursive.

This  is emphasized

 

Lists

Using “*”, “+” or “-” is starting a lists, All of these markers are interchangeable.

  • Coca Cola
  • Beer
  • Water

 

ordered lists appear with “1.” , “2.” , “3.” and so forth

  1. work
  2. eat
  3. sleep

 

Links

“[ … ]” words put inside parentheseses will function as a description

“(…)” is the actual link

send me to google!

 

Images

To implement an image we have to just use an additional “!” before a link like above so:

“![description](insert path here)”

 

 

Code

Now the most interesting part about markdown is the ability to use code wheather its ruby, php, java script or what ever language supported.

Starting with ” “` ” and the language “ruby”

and ending with ““`”  will start a ruby code snippet like:

 

def my_cool_method

print "Hi everyone"

end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s