Gangmax Blog

Preview markdown

From here:

1
2
3
4
5
6
7
8
9
# generate HTML from Markdown and view the rendered page in the terminal

maruku myfile.markdown
lynx --dump myfile.html

# and of course, to just generate and preview the raw HTML in the terminal

maruku myfile.markdown
cat myfile.html

As I mentioned in the last blog, “maruku” is a ruby gem.

Comments