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

后端 未结 25 1758
一个人的身影
一个人的身影 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:43

    Improving upon @barry-stae and @Sandeep answers for regular users of elinks you would add the following to .bashrc:

    function mdviewer() {
      pandoc $* | elinks --force-html
    }
    

    Don't forget to install pandoc (and elinks).

提交回复
热议问题