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

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

    To read a README.md file in the terminal I use:

    pandoc README.md | lynx -stdin
    

    Pandoc outputs it in HTML format, which Lynx renders in your terminal.

    It works great: It fills my terminal, shortcuts are shown below, I can scroll through, and the links work! There is only one font size though, but the colors + indentation + alignment make up for that.

    Installation:

    sudo apt-get install pandoc lynx
    

提交回复
热议问题