Is there a command line utility for rendering GitHub flavored Markdown?

后端 未结 25 1691
一个人的身影
一个人的身影 2020-11-28 16:53

I\'m wondering if there is a command line utility for taking a GitHub flavored Markdown file and rendering it to HTML.

I\'m using a GitHub wiki to create website con

25条回答
  •  孤城傲影
    2020-11-28 17:36

    Improving upon @barry-stae's solution. Stick this snippet in ~/.bashrc

    function mdviewer(){
      pandoc $* | lynx -stdin
    }
    

    Then we can quickly view the file from the command-line. Also works nicely over SSH/Telnet sessions.

    mdviewer README.md
    

提交回复
热议问题