DEV Community

Cover image for Tool: Preview Markdown Document on Your Terminal
Olufisayo Bamidele
Olufisayo Bamidele

Posted on

Tool: Preview Markdown Document on Your Terminal

If you've recently been initiated into the Vim users cult and, like me, you also don't like leaving your terminal that much anymore, you're probably being forced to do so whenever you want to do stuff like previewing your markdown documents. Sweat no more; glow got you covered.

Installation

On Mac, brew install glow.

Usage

Usage: glow MyWonderfulDoc.md

Alternative: markdown + lynx

Markdown: This is a command line tool for converting your MD files to HTML
Lynx: A terminal-based web browser for rendering HTML pages.

Installation

brew install lynx markdown
Enter fullscreen mode Exit fullscreen mode

Usage

Convert your MD file to HTML with markdown and pipe the output to Lynx

markdown MyWonderfulDoc.md | lynx -stdin
Enter fullscreen mode Exit fullscreen mode

Top comments (0)