Posted By

noah on 06/08/09


Tagged

Bash commandline lynx one-liners maruku


Versions (?)

preview Markdown in the shell, without launching Firefox


 / Published in: Bash
 

You may need to first sudo gem install maruku and install Lynx using your favorite package manager or just download Lynx by itself

  1. # generate HTML from Markdown and view the rendered page in the terminal
  2.  
  3. maruku myfile.markdown
  4. lynx --dump myfile.html
  5.  
  6. # and of course, to just generate and preview the raw HTML in the terminal
  7.  
  8. maruku myfile.markdown
  9. cat myfile.html

Report this snippet  

You need to login to post a comment.