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
Using “_ … _” around the word will make it cursive.
This is emphasized
Using “*”, “+” or “-” is starting a lists, All of these markers are interchangeable.
- Coca Cola
ordered lists appear with “1.” , “2.” , “3.” and so forth
“[ … ]” words put inside parentheseses will function as a description
“(…)” is the actual link
To implement an image we have to just use an additional “!” before a link like above so:
“![description](insert path here)”
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