Markx is a command line tool for node.js to convert markdown and code blocks into html. It also has the ability to preview your markdown files live with auto refresh.
npm install -g markx
Usage: markx [file]
Options:
-h, --help output usage information
-V, --version output the version number
-l, --lang <lang> Language for syntax highlighting (default: auto)
-n, --nohl Disable syntax highlighting
-p, --preview <port> Start a server to get a live preview
Examples:
# convert markdown and code blocks to html
$ markx blog.md > blog.html
# convert markdown and specific language code blocks to html
$ markx --lang javascript blog.md > blog.html
# live preview of your markdown file
$ markx --lang javascript --preview 8001 blog.md
Here are some css files that will style the code blocks.