Skip to content

Instantly share code, notes, and snippets.

@adamrb
Created March 5, 2013 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamrb/5090451 to your computer and use it in GitHub Desktop.
Save adamrb/5090451 to your computer and use it in GitHub Desktop.
Display Markdown in Termonal
#!/bin/bash
# Writes Markdown Text to terminal
file="$1"
if [ "$file" == "" ]; then
exit 1
fi
clear
cat $file | /usr/local/bin/Markdown | w3m -dump -T text/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment