Learning Markdown

ABOUT

Markdown is a text-to-HTML conversion tool. In other words “Markdown” is two things:

(1) a plain text formatting syntax

(2) a software tool, written in Perl, that converts the plain text formatting to HTML.

Starting with Markdown

Here I am using ubuntu.

so first install discount package by using following command

sudo apt-get install discount

after installing this write down a file in text editor. Here I am using vim.

so in terminal write vim filename.md

and go in insert mode by pressing i and write. Here is the source code of file in markdown written by me.

 

       

Image links are

[https://imagebin.ca/v/3Rk8RL0Rfwwa]

[https://imagebin.ca/v/3Rk9i16Jq8Go]

This is a file explaining all basics functions of Markdown.

Now save this file and in terminal write

mkd2html filename.md

and then type ls

we will see a file named with filename.html. for example

      

Image link:

[https://imagebin.ca/v/3RkAk1ONnVRK]

 

and the output of above file is

 

      

Image Link:

[https://imagebin.ca/v/3RjY2JVElzao]

[https://imagebin.ca/v/3RjYmWPpVMiE]

 

Advertisements

2 thoughts on “Learning Markdown”

  1. Well written!

    A couple of suggestions though.
    1. If you refer to data from somewhere, credit them explicitly or via a link.
    2. The original Markdown parser was perl (that program was also called markdown, hence the confusion), but the tool that we use (discount) is a c program.

    Loved the post 🙂

    Like

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s