Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Created February 13, 2012 16:39
Show Gist options
  • Save jaymzcd/1818056 to your computer and use it in GitHub Desktop.
Save jaymzcd/1818056 to your computer and use it in GitHub Desktop.
Use documentup.com to prettify your markdown files from the commandline
function nicereadme {
TARGET_DOC=${1:-/tmp/doc.html}
INFILE=${2:-README.md}
curl -s -X POST --data-urlencode content@$INFILE http://documentup.com/compiled > $TARGET_DOC;
echo "$INFILE is pretty at file://$TARGET_DOC";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment