Markdown [Snippet] Simple and easy beautiful markdown output

Everybody like markdown, it’s easy and beautiful. But the output of markdown syntax just plain html, how to make it better?

Yeah, that is my question. I don’t want to install anything beside markdown. So it’s back to basic.

Here is the step (do it in your console for first step) :

git clone https://gist.github.com/6878245.git
mv 6878245/head.html . && rm 6878245/ -rf
markdown yourmarkdown.md > body.html
git clone https://gist.github.com/6878289.git
mv 6878289/tail.html . && rm 6878289/ -rf
cat head.html body.html tail.html > index.html

Here is the second step when you edit your markdown file, and compile & combine it again :

git clone https://gist.github.com/6878094.git
mv 6878094/combine_md.sh . && chmod u+x combine_md.sh && rm 6878094/ -rf

After You got the snippet from My gists :

vim index.md
./combine_md.sh

and voila, your markdown is better now.

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