Skip to content

Instantly share code, notes, and snippets.

@yeger00
Last active January 19, 2020 06:17
Show Gist options
  • Save yeger00/b1275e2ef979bef3806cd14507461ed8 to your computer and use it in GitHub Desktop.
Save yeger00/b1275e2ef979bef3806cd14507461ed8 to your computer and use it in GitHub Desktop.
function md() {
if ! command -v pandoc >/dev/null 2>&1 ; then
echo "pandoc is requiered, but it's not installed. Aborting.";
return;
fi
if ! command -v lynx >/dev/null 2>&1 ; then
echo "lynx is requiered, but it's not installed. Aborting.";
return;
fi
pandoc ${1} | lynx -stdin;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment