On Mon, 2018-09-24 at 12:32 +0100, Patrick O'Callaghan wrote:
I'm looking for a simple terminal-based viewer for Markdown
files. I
*don't* want an editor. Think 'less', not 'emacs'. I don't mind
if it
wants to pop up a window to show rich text, but it's not critical.
It seems remarkably* difficult to find such a beast.
poc
* See what I did there?
I solved it by using pandoc and lynx, both of which I already had:
#!/bin/bash
# Show a Markdown file on the screen. Uses Lynx for presentation.
pandoc $1 |lynx --stdin
poc