Last active
January 2, 2016 04:58
-
-
Save GoWind/8253716 to your computer and use it in GitHub Desktop.
A simple way to create HTML from Markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Markdown is a simple language to write create web pages . Markdown is much easier than HTML with the barest of markup ( as opposed to HTML) and lets you focus on the content . | |
| The best way to create your own static website is to create a user.github.io page ( its pretty simple ) and then write your pages in markdown ( *.md files) and let some program generate HTML for you . | |
| Unfortunately , while people on the internet obsess over Markdown , I found it hard to find a simple and easy-to-use tool to generate my static website . The most often cited tool Jekyll and Hugo were overkill for my needs ( and Hugo didn't work in my case for I was unable to generate any html files ) | |
| Anyway, back to the topic , i found a nice tool called markdown2 a python based html generator .Its easy to install with | |
| sudo pip install markdown2 | |
| (or) | |
| sudo easy_install markdown2 | |
| you will need python (2.7 in my case) and python pip or python setup_tools | |
| The syntax of Markdown is described in | |
| http://daringfireball.net/projects/markdown/syntax/ | |
| once you have installed markdown2 a nice fancy cli tool is installed . You can then simply generate HTML files using | |
| markdown2 file.md > file.html | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment