Skip to content

Instantly share code, notes, and snippets.

@MaxPleaner
Created March 29, 2017 21:18
Show Gist options
  • Save MaxPleaner/784135271093c26d9d20533cafd5e0bd to your computer and use it in GitHub Desktop.
Save MaxPleaner/784135271093c26d9d20533cafd5e0bd to your computer and use it in GitHub Desktop.
read formatted markdown file from CLI
# this is a fish function
# if using fish, add this to a new file at ~/.config/fish/functions/read-md.fish
# otherwise, use line 2 only and replace $argv with a markdown file path.
function read-md
pandoc $argv | lynx -stdin
end
# source:
# http://unix.stackexchange.com/a/120519/65890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment